Can you use nested Repeating Content Controls with the Populate a Microsoft Word template action?

Sarah Cox 96 Reputation points
2021-08-10T18:53:17.12+00:00

Basically what I am trying to accomplish is to have a table which has a section for each Division and within that section have subsections for each Company within that Division. This is as close as I have gotten (with DivisionTable and CompanyTable both being repeating content controls):
121997-image.png

After populating the template from a workflow the Divisions are working fine (its repeating three times w/ the correct info) but in the Company Table it just shows [obj] where it should be the Company Name. It also looks like there may be two new unnamed tags placed here after its generated but I'm not sure.

122111-capture.png

In the Populate a Word Template action inside the DivsionTable tag I am putting an array:

122066-image.png

This is what the first object in the array looks like:

{  
    "CompanyTable": [  
        {  
            "CompanyName": "Company Name Goes Here"  
        }  
    ],  
    "DivisionDesc": "Finishes",  
    "DivisionNo": "09"  
}  

Is what I am trying to do even possible? I looked at some other posts on here and stack overflow and I saw mixed answers so I wasn't sure.

If it is possible then what exactly am I doing wrong? If it is not possible do you have any suggestions on how to accomplish this another way?

I would really appreciate any help with this!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
Microsoft 365 and Office | Development | Other
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.