web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Populate a Microsoft W...
Power Automate
Answered

Populate a Microsoft Word template with dynamicschema and repeat contentcontrol

(0) ShareShare
ReportReport
Posted on by 105

I have to fill a word template with data and I use Populate a Microsoft Word template with dynamicfileschema
but a field is of type "repeating content" and instead of inserting the correct values it shows the JSON (if I don't use dynamicfileschema it works perfectly)

i have to use dynamicfileschema because the template file can change slightly and i have too many templates to manage them individually

 

paronchi_0-1667917213514.png

varMyTable is an JSON Array

the results is

 

paronchi_2-1667917436590.png

 

 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @paronchi , 

    Have you looked at this article? 

     

    https://www.bythedevs.com/post/how-to-populate-a-word-template-with-repeating-control

  • paronchi Profile Picture
    105 on at

    the example uses the "Populate a Microsoft Word template" connector in the "standard" way, and this way it works for me too, but I have to (want) to use it with dynamicfileschema to avoid making a case for each template slightly different (I have 1000 to manage) and using dynamicfileschema as in the examples found, only the standard controls work and not the type "repeating content"

  • grantjenkins Profile Picture
    11,063 Moderator on at

    I think it's displaying it as plain text because it doesn't recognise it as JSON. Can you pass your variable into a json expression before you add it to the dynamic schema and see if that works.

     

    json(variables('output'))

     

  • paronchi Profile Picture
    105 on at

    thank's, i tried but it doesn't work 😭

  • Verified answer
    paronchi Profile Picture
    105 on at

    yes, yes, yes, solved, it was enough to remove the "

    example

    {
    "355479380": "variables('myvar')",
    "504866188": variables('mytable')
    }

     

    355479380 normal word control

    504866188 repeat word control

    'myTable' JSON Array

  • Anderrj2 Profile Picture
    25 on at

    I want to thank you for this! This JSON was messing me up so badly, it being that I had quotes when I didn't need them is silly.

     

    It finally got it!

     

    I'm using an ArcGIS Survey123 trigger, making a report, then adding a table of data that I pulled from another hosted feature layer to combine things into a single document.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard