Hi,
I have begun converting our mail merge templates into word templates as part of the mail merge deprecation that will be taking place.
I've come across an issue which I can't seem to resolve, so was hoping someone might be able to help.
In Dynamics 365 CRM, we have a field called Collection/Shipment Date. The format of the field is DD/MM/YYYY - when using the XML pane and adding the field as plain text, it works fine.
The issue is we have a custom ID field which also requires the Collection/Shipment Date, but in a YY format.
So it is GXXXX'YY'0XXXXX.
My first question is as follows.
Q1: Is there a way to make the Collection/Shipment Date appear in YY format when the word template is merged from the record in Dynamics 365 CRM?
I tried using the MERGEFIELD with CTRL/ALT + F9 but that didn't work. It doesn't appear to work for word templates as it does for mail merges.
My second question is as follows:
If this isn't possible, is there a way you can truncate the text on a field after it is merged? For example, we do have another field that has the custom ID mentioned earlier (in full), but that contains a prefix and suffix that won't be required.
i.e. GBXXXXXXGXXXXYY0XXXXXZZZZZZZZZZ. I want to get rid of everything before GX i.e. GBXXXXXX and all of the Zs.
I already posted this question here but couldn't find any answers. https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_win10-mso_2016/change-date-format-field-on-word-template-from/a6c47783-5103-4334-97f0-32bf930aa9d4?messageId=da1c15ad-8257-41ca-bc02-1d50af52dfe3
Thanks,
Forid.
*This post is locked for comments