We have a process model that is triggered by inbound emails, using the OOTB Receive Message Event. We are using the message properties to get the metadata about the email, and we are saving the subject, body, attachments, etc.
What I want to be able to do, is save the entire email that was sent to the process model, as a document of some sort, so that it can be included in the case and be referenced throughout the process. Has anyone done this before? I've thought of some non-ideal options, including using the msg!body to create a Word or HTML document, but that wouldn't maintain the format of the original email, nor would it include the subject, from/to/cc/bcc fields. I also didn't see anything in the documentation that might lead to a solution.
Any ideas would be great - thanks!
Discussion posts and replies are publicly visible
Hi, any idea on it? Peter Lewis
If you're using the OOTB receive message event, this could be a potential solution. You can use the Eml Utility plugin to convert the inbound email to an EML file. From there, you can have the user download and view the email. If the requirement is to view the email in Appian, you can convert the EML file into HTML or PDF using the EML and MSG Conversion plugin.
I personally haven't used this approach, but in theory, it should keep the email formatting intact, which was the OP's main concern.
Alternatively, I've worked on similar use cases using the Mail Poller . We had a process on a timer that would kick off and process any new emails in a dedicated mailbox. The plugin processes the emails, creates an EML file, saves all attachments as Appian documents, and saves the email body as HTML along with other useful metadata. Hope this helps!