cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lr
Advocate IV
Advocate IV

Populate Word template from all SharePoint List Items

Hi,
is there a way to populate a Word document template with all items from an SharePoint list?

Greetings, 
Louisa

12 REPLIES 12
AlanPs1
Resident Rockstar
Resident Rockstar

Hi @lr 

In simple terms, yes.

This video will show you how to create the template - https://youtu.be/Zzm965PlYl0?t=354

Instead of using "rich text content control", use "plain text content control" for now.

The principal of populating the template from a button is the same as the list.

You just need to make the template to suit the contents of your list, format the template with tables or labels for your text to suit..

Please give it a go and post back if any issues.

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Hi @lr 

I am just wondering if you have managed to get any further at all?

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Hi @AlanPs1,
it works very fine for one item on a list. But how can i populate a template with all items from my list?
For example, this is my Sharepoint list:
Food     | Ordered

-----------------

Burger   | Yes

Soup     | Yes
Pizza    | Yes

Then I want a document that looks like this, for example: 
Your orders: 
Burger

Soup 

Pizza

How do I configure the flow?

AlanPs1
Resident Rockstar
Resident Rockstar

Hi @lr 

I would expect you will need to use an "Apply to each" so that it applies to every item in the list.

 

By all means post a picture of the Flow but generally the above will get all items if using "Get items".

 

If you have found my post helpful, please mark thumbs up.

If this post has solved your problem, please click "Accept as Solution".

Any other questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Hi @lr , I hope you are doing good.

How did you get on, did you manage to use "Apply to each" in order to access all items in the list?

 

If you have found my posts helpful, please mark thumbs up.

 

Any other questions, just ask.

 

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


 Hi Alan,

 

The video is helpful. But I've a query. The action- "Populate a Microsoft Word template" is a premium action. I used this action in my PowerAutomate flow as a trial user to generate documents. May I know how long this action will work for the flow?

 

Thanks,

Kunal

Hi Alan

 

I have a column in SharePoint that is a choice column. What would i need to do in order for the Word template to read this column as currently I get the below in the column 

[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":0,"Value":"Regulatory"},{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":3,"Value":"Financial"}] 

 

Regards

Dale

Hi, i have the same problem. did you resolve this problem, what is solution? 🙂

Same problem . . . did you ever find a solution?

Dalie

I have the same problem, did you ever find a solution?

Hi

 

So I found that if I looked for the column name in the list it brought through 2 or 3 with the same name but you select the one that is your column + value. If your column allows multiple selections you need to initialize an array variable and then append to the array with the column + value option and it should automatically create apply to each. When you populate a word template you need to make sure that if it's a multiple selection column that the item in the document is a recurring line item else if it's single selection it's a normal text item

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,110)