In this series of posts, I’m taking a look at the formatting of emails sent by the Microsoft Dynamics GP Workflow module. In the first post I showed how the font-size could be changed on the email, and in the second post how an embedded style sheet can be used to format the document line fields.
It is best practice not to use different methods of applying styles within a single page, or in this case email. So with both normal fields and the document line fields needing to be formatted, I revisited the email message and changed the original span tags to use a class and added the format of this to the embedded stylesheet:
I did a quick test of the assignment email to ensure the formatting was working correctly:
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.
Hi Ian,
I appreciate the information you’ve shared on Dynamics GP … I was particularly interested in your post about “Customising Dynamics GP Workflow Emails: Applying an Embedded Style sheet”, that is excellent! I’m assuming the same “work-around” for changing fonts, etc. would work with any ‘form’ as being an embedded email in GP … I am specifically interested in having an embedded email contain a logo and being able to change the text fonts. In your example above, it looks like you were able to pull in the “ITEM NUMBER” | “ITEM DESCRIPTION” | “ACCOUNT NUMBER” | “ESTIMATED COST” from a report heading … is it possible to embed in an entire Word Doc Form with it’s original formatting?
Thanks,
Mark
Hi Mark,
The ability to change the emails with HTML or CSS is limited to the Workflow emails as these are the ones which get sent as HTM; other emails from GP get sent as text.
The table you see on this email example is a standard one generated by workflow itself.
This series covers pretty much all the methods of changing which I have tried, although, in theory, any HTML or CSS should work as they will be rendered by the HTML engine of the email application.
Ian