Reopen Case after Import E-Mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jacobite
    Junior Member
    • Dec 2014
    • 22

    Reopen Case after Import E-Mail

    greetings,

    is there any way to set the status from a case to e.g. open, after there was an email imported to this case?
  • yuri
    Member
    • Mar 2014
    • 8528

    #2
    Hi

    Only manually by customizing application/Espo/Modules/Crm/Services/InboundEmail.php
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • macben
      Junior Member
      • Jan 2018
      • 17

      #3
      Is there already another solution or how would the customization look in InboundEmail.php?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8528

        #4
        I think it's possible to implement via workflow or by customzing:

        Add to

        https://github.com/espocrm/espocrm/b...Email.php#L432

        PHP Code:
        
        $case->set('status', 'Some Status');
        $this->getEntityManager()->saveEntity($case); 
        
        If we implemented this bahaviour I think about 80 percents of cases would be reopened because of "thank you" email. I've investigated this question when implemented case management long ago.
        Last edited by yuri; 01-07-2018, 08:13 AM.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • macben
          Junior Member
          • Jan 2018
          • 17

          #5
          I have now inserted the PHP lines, but unfortunately the status still remains "closed" or archived. What am I doing wrong or what should I do?

          For us, 95% of new requests are actually new cases, where the customer just responds to an old email. Unfortunately, we would thereby massively lose customer requests. What option is there here?

          Comment

          • yuri
            Member
            • Mar 2014
            • 8528

            #6
            Please try to add that code after this line: https://github.com/espocrm/espocrm/b...Email.php#L418
            I've mistaken.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • macben
              Junior Member
              • Jan 2018
              • 17

              #7
              Thank you - now it works.
              Maybe you could put it in the back end as an option, that if jmd responds to a ticket it will open again - as an idea for the next update

              Comment

              • Pablo
                Senior Member
                • Aug 2015
                • 177

                #8
                It WORKED! Thanks a lot.

                Comment

                • Scarecrow
                  Junior Member
                  • Sep 2019
                  • 19

                  #9
                  Hey There,

                  sorry for reviving this thread. But have there been any changes affecting this solution?
                  Because it won't work for me. Has the Line in the Document changed or is there a better Option to open up the cases again meanwhile?
                  Running Espo with the Advanced Pack installed but inserting the code after the highlighted Line didn't have any effcts on the Cases.
                  Last edited by Scarecrow; 10-01-2019, 02:12 PM.

                  Comment

                  • partomas
                    Active Community Member
                    • Sep 2018
                    • 331

                    #10
                    it's very actual feature for all who use crm for support. sometimes customers replay to previous ticket after a while and if it's not open again we miss a lot of cases.

                    Comment

                    • Scarecrow
                      Junior Member
                      • Sep 2019
                      • 19

                      #11
                      I solved it by using a Workflow that triggers after creating the record.
                      Used Entity is the email.

                      Action is to change value of a connected entity (case).
                      Here you can change the value of the status to any status you like.

                      Comment


                      • partomas
                        partomas commented
                        Editing a comment
                        We solved it in that way too, but it's would be better to have it as standard feature.
                    Working...