Customising Dynamics GP Workflow Emails: Increasing the Font Size in the Document Line Fields

Microsoft Dynamics GPAs I mentioned in the series index, on a recent Workflow project I had a few users comment to me that the text on the emails was a little too small to read. My initial reaction was that it was not possible to change the font size. However, while driving a little later, I had a thought of how I could tackle this.

In the first post of this series, I covered increasing the font-size of the email by wrapping a span test formatting tag around the text, but I found when doing this with the task assignment email which had the Document Line Fields mail merge on it, the formatting didn’t work correctly.

On this email I wrapped the span tags around all of the message body:

Message Setup

As you can see, when I tested the email, the document line fields retained their original size:

Task assignment email

I decided that it was probably still possible, but I needed to view the source code of the email to see how the table was formatted. You can view the source code of an email by clicking on Actions >> Other Actions >> View Source:

View source

The section of code I have highlighted, is the document line fields table:

Task assignment email source

So, the key to formatting the table is the td element which are the cells of the table. I didn’t need to get especially fancy, so simply applying a format to all of the td elements was going to be sufficient.

Doing an inline style, as I did with the span tags wasn’t going to be possible, but I thought that an embedded stylesheet might. The first part of the message body is the embedded style sheet, followed by the span tag around the body of the email itself, which doesn’t extend around the document line fields (no point as it has no effect):

Message Setup - Embedded stylesheet

How, when I tested the task assignment, the document line fields table was larger text as well; too large in fact. Even though both the td and span styles were set to 12pt, the document line fields appears to be far larger:

Task assignment email

Back to the Message Setup and I made the td style 10pt:

Message Setup

A final test showed that the font size nor appeared similar in size to the rest of the email:

Task assignment email

Can ISC Software Solutions help?

ISC Software Solutions are UK and Ireland based experts on Microsoft Dynamics GP. If you’d like to speak to someone about consultancy, upgrades, implementation, development, GP Elementz add-ons or portals, or anything else Dynamics GP related, you can use the form below.
Your Name (required):
Your Email (required):
Enquiry message:

What should we write about next?

Your Name (required) –
Your Email (required) –

2 thoughts on “Customising Dynamics GP Workflow Emails: Increasing the Font Size in the Document Line Fields

Leave a Reply

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