We are currently performing extensive email triage on a project and have a need to display the HTML body of the incoming email. The reason plain text is not feasible is that the HTML email body contains information in a tabular format. This information is critical to the user as it contains very specific and relevant information.
Currently, the Document Viewer component does not support the display of HTML documents. The Web Content component is able to display HTML but does not allow this if the source is being served up inline by Appian via a Web API, i.e. "Source may not be an internal Appian source."
We are able to generate a PDF from HTML using the Dynamic Document Generator plugin found on the AppMarket. The translation from HTML to PDF is not perfect however due to "creative" formatting from time to time.
Has anyone else had this or a similar requirement and how did you solve it ( other than using the above mentioned methods )?
Discussion posts and replies are publicly visible
I'm not sure how "officially supported" this method would be, but I noticed several weeks ago that a Web API component can serve up a page that displays arbitrary input HTML as its body, and is pretty easy to do using OOB functionality. This does, of course, carry all the downfalls of displaying HTML directly, which you already mentioned.
I think the "official" supported method would be to use the method you've already tried, i.e. converting to PDF first.
I'm having the same problem here. I was able to export the email body to PDF but it just doesn't look right within the Document Viewer component. Can you please explain how the Web API would work with the input HTML? I've tried multiple things and the Web Content component always returns "Source may not be an internal Appian source"
© 2023 Appian. All rights reserved.