Customising Dynamics GP Workflow Emails: Applying an Embedded Stylesheet

Microsoft Dynamics GPIn 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:

Message Setup

I did a quick test of the assignment email to ensure the formatting was working correctly:

Task assignment email

Looking for support or consultancy with Microsoft Dynamics GP?

I no longer work with Microsoft Dynamics GP, but the last company I worked for was ISC Software in the UK; if you’re looking for support or consultancy services with Microsoft Dynamics GP you can contact them here.

What should we write about next?

Your Name

Your Email

Suggested Topic

Suggestion Details

2 thoughts on “Customising Dynamics GP Workflow Emails: Applying an Embedded Stylesheet

  1. Comment says:

    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

    1. Comment says:

      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

Leave a Reply

Your email address will not be published. Required fields are marked *