"Copying body and attachments in manual email-to-case."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    "Copying body and attachments in manual email-to-case."

    hello,
    Where is the body copied to?
    peter
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello.
    Email detail view, next to Reply button Create Case. Field description contains body, and attachments are added as well

    Comment

    • peterberlin
      Active Community Member
      • Mar 2015
      • 1004

      #3
      Thank you.
      Is there also a formula variable "inboundEmailbody"?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        You can try 'inboundEmail.body' but I'm not sure.
        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

        • peterberlin
          Active Community Member
          • Mar 2015
          • 1004

          #5
          inboundEmail.body and inboundEmailbody do not work.
          My only wish is that the content (body) of the email (email to case) is written in the description field.

          Comment

          • tanya
            Senior Member
            • Jun 2014
            • 4308

            #6
            I think it's possible only in workflow for Email. Update related entity > Parent > case

            Comment

            • peterberlin
              Active Community Member
              • Mar 2015
              • 1004

              #7
              There is no variable / attribute containing the e-mail body. That's why I can't find a solution.

              Comment

              • yuri
                Member
                • Mar 2014
                • 8440

                #8
                Maybe
                Code:
                ifThen(
                     parentType == 'Email' && !description,
                     description = parent.bodyPlain
                );
                will make a trick?
                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

                • peterberlin
                  Active Community Member
                  • Mar 2015
                  • 1004

                  #9
                  I have created a workflow. It is triggered when a new data set (case) is created.
                  Update Entity.
                  The workflow is always started.
                  The code is in the "Action".
                  ifThenparentType == 'Email' && !description,description = parent.bodyPlain ); Is not work. ifThenparentType == 'Email',description = parent.bodyPlain ); Is not work. description = parent.bodyPlain; Is not work.
                  description = 'test data'; Is work.

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8440

                    #10
                    There is really no such relationship. The only way it to have workflow from Email and then Update related record > Parent.

                    It can be tricky to detect the first email that caused case creation but ignore follow-up emails related to a case.
                    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

                    • peterberlin
                      Active Community Member
                      • Mar 2015
                      • 1004

                      #11
                      Thank you.
                      But I don't understand the basic problem.
                      Email to case works very well. Espo always enters the subject field of the e-mail in the case - without problems.
                      Why can't I do that with the body?

                      Comment

                      Working...