cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Matt_Markahm
Level: Powered On

Experiences Populating a MS Word Template from a SharePoint List

I have two related SharePoint lists List A and List B. Each item in List A is related to a single item in List B, and items in List B can be relted to more than one item in List A.

 

Information from both List A and List B together populate a one-page report. (MS Word document)

 

I'm using a manually triggered flow that pulls data from both lists (using Get items) and then writes a series of MS Word documents using Populate a Microsoft Word template (preview). There are two significant challenges, one of which I have overcome:

 

1) There are two multi-select pick lists in the SharePoint lists that need to be included in the final report - it was extremely tedious to get these to render properly in the Word document. After extensive reserarch I was able to use a series of string variables to build up something that could be displayed in the Word plain text field... this is something that I hope is built into the Populate a Microsoft Word Template action soon.

 

2) Several of the fields from the Sharepoint list are currency, and I have not yet found a good way to render them in the Word file - they come through as text. It would seem that formatting a number as currency would be a very basic feature of either the Flow engine (as an Expression perhaps?) or of the MS Word action. Any suggestions would be greatly appreciated.

 

Here is the general outline:

Flow1.PNG

2 REPLIES 2
Community Support Team
Community Support Team

Re: Experiences Populating a MS Word Template from a SharePoint List

Hi @Matt_Markahm,

 

Maybe you can convert the string to currency refer to this post:

https://powerusers.microsoft.com/t5/Building-Flows/Convert-string-to-currency/m-p/323106

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ez1138
Level: Powered On

Re: Experiences Populating a MS Word Template from a SharePoint List

Hi, can you post an example or two of the variables code you used? Using multiple lists is making my brain fry.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (5,855)