I was able to get this to work with images by creating a string variable from the GetFile of the image and adding a few lines in the dynamicFileSchema on the populate template action.
Hi RichFunk365,
Thank you for this. it worked for me. However, how do I do this with images.
Remember to use the XMLify function on contents the document.xml file before running the Xpath query on it.
But perhaps your detour around JSON has the same effect. 🙂
Was having real trouble with the xpath for some reason. Had to convert xml to json then back to xml to make it work, and a Do Until to merge each Excel's row element into the schema. I though this was hopeless, but somehow managed to make it work (albeit it is a complex and ugly solution).
Thanks for the input.
Hi
It's a rather complex flow/flows, but i'll try my best to explain it. 🙂
It goes something like this...
Preparing template:
Merging:
The composing of the JSON-string is a little complex in my solution - I'm sure it could be done easier. Even the xpath-query can probably be optimized, but I got it working so... 🙂
Could you please elaborate how do you extract mergefields dynamically from word? I'm at the point where I only need to get those fields as JSON dynamically
@MatthewBrooksST, thanks for validating!
@RichFunk365, thanks for coming up with this idea!
Hi
Old post, but wonder if you ever found a solution?
I've build a solution that extracts mergefields from a word template to a json string with pairs of field id and name, then replaces the merge field names with actual data from CRM and uses it as a dynamicFileSchema for the Populate a Microsoft Word template"-connector.
I am facing the issue myself. I need to populate few word templates and I thought it should have been real simple but looking like it will take them some time to fix
It's real shame for Microsoft that even after 2 years it is still implemented so ugly and not corrected
rpersad
16
David_MA
10
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1