{"id":4800,"date":"2022-06-30T20:21:32","date_gmt":"2022-06-30T18:21:32","guid":{"rendered":"https:\/\/dynamicseip.com\/docs\/invoice-mail-queue-eng\/3-application-settings\/3-2-1-document-templates\/"},"modified":"2022-06-30T20:50:08","modified_gmt":"2022-06-30T18:50:08","slug":"3-2-1-document-templates","status":"publish","type":"docs","link":"https:\/\/dynamicseip.com\/docs\/invoice-mail-queue-eng\/3-application-settings\/3-2-email-accounts-email-templates-document-templates\/3-2-1-document-templates\/","title":{"rendered":"3.2.2\tEmail Templates"},"content":{"rendered":"

Another area that needs to be set for the functionality to work properly is the Email Templates table. Templates are used to build a message format that will be automatically generated after the documents are posted – you can enter the message, subject of the message and, if Body is used in HTML, map the variables to the fields from Business Central.<\/p>\n

To create a new template, press the New<\/strong> button:<\/p>\n

\"\"<\/p>\n

The following window will be displayed:<\/p>\n

\"\"<\/p>\n

It is worth setting the Code<\/strong> and Description<\/strong> fields so that it will be easy to assign an Email Template<\/strong> to a Document Template<\/strong> later (e.g. using identical values for the Code<\/strong>, Description<\/strong> or Code and Description<\/strong> fields).<\/p>\n

The Subject Pattern<\/strong> field is used to enter the formula generating the message subject. You can set them up in any way, also using formulas used in the BC system (e.g.% 1).<\/p>\n

\"\"<\/p>\n

Another important field to be completed is Table No.<\/strong> and Table Name<\/strong>:<\/strong><\/p>\n