Forum Discussion
Template with XML Mapping content in Quick part fields?
I am uncertain that I understand your question.
You seem to be conflating merge fields, document properties, and mapped Content Controls.
If you map a content control and copy that into another document, the new document will not have the XML node. If it is a Document Property Content Control, it will be mapped to that XML node in the recipient document, it does not carry the data with it.
Here are some resources.
- Mapped Content Controls by Greg Maxey
- Repeating Data Using Document Property Content Controls and Other Mapped Content Controls
Repeat text in MS Word Using Document Property content controls
Repeat Text in MS Word by Mapping Content Controls with the XML Pane
You are correct that I was conflating merge fields and mapped content controls, sorry for any confusion.
What I am trying to do is use functionality available for merge fields like the DisplayBarcode field, with the content from a Content Control inside the field. This does work when using XML Content Controls to repeat text in a document as demonstrated in Laura Townsend's excellent videos, but does not work when the XML Content Controls are created and populated by Dynamics 365. Perhaps that is simply not possible.
- Charles_KenyonAug 18, 2023Bronze Contributor
I am a fellow user and have no knowledge of Dynamics 365. You may want to see if there is a help forum specifically for that.
I have used the DisplayBarCode field with mapped content controls without problems. Note, though, that it is a field which must be updated upon a change in the content. It may update when you do a print preview. See Dealing with Fields in Microsoft Word.P.S. The DisplayBarCode field is a field but not a merge field. The equivalent merge field is MergeBarCode. I have used both in merges, though. The DisplayBarCode field can contain data from a merge field to display a bar code.
- Charles_KenyonAug 18, 2023Bronze Contributor
Here is a link to the Microsoft Dynamics 365 forum. (It appears to be new and empty.)
https://community.dynamics.com/
Nevertheless, your question is likely to be seen there by people who know more about it than I do.
- NicholasHEAug 21, 2023Copper ContributorThank you again Charles, that's also very good to know that you have used DisplayBarcode with mapped content controls in the past. I'll follow-up in the Dynamics 365 forum.