Hello
I'm trying to populate a word document from an array.
I've followed this tutorial Intermediate | Flow of the week: Create PDF Invoices Using Word Templates with Microsoft Flow | Powe...
When I try to populate the merge fields from my array, it's producing blank outputs. I'm not sure where or why I'm going wrong.
You can see my word inputs here:
I've mapped the fields as per the instruction (labels being my array):
My word document is setup where I've created a table, wrapped repeating content around the table and then inserted plain text (which is what is titled array):
Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @craigmk1987
You need to define the your columns that will appear on your word template as below:
I am detailing this solution in the below blog article :
https://onlinemgblog.wordpress.com/2020/06/20/populate-a-word-document-using-power-automate/
Hope this helps you !
Hi @craigmk1987
You need to define the your columns that will appear on your word template as below:
I am detailing this solution in the below blog article :
https://onlinemgblog.wordpress.com/2020/06/20/populate-a-word-document-using-power-automate/
Hope this helps you !
Hi Mira,
Thanks - your blog certainly helped me to populate the document.
I am now looking through too create more than one column (rather than have lots of pages and only one column. I can't seem to get it to populate into more than one column. Can you help?
Here is my output:
Ideally, I'd like the table to use the next column available rather than use lots of pages based on one column..
Thanks!
Craig
So in your word template , click insert new column and add inside it a Plain Text Control and set it is name and display name and make sure it matches the names on the array you are passing.
Can you share how your word document currently looks like?
Hi @Mira_Ghaly,
Thank you. Yes, this is what I'm now managing to output into a word/pdf document
But I'd like it to output like this (I appreciate that rich text doesn't work, so as long as I can produce the desired output, I can then format it from there):
The data is not from the same source, but essentially it's to extract a stock order and put it into a label format (L7160) that I can then print. The output source takes each stock item on the stock order and attaches a location for it. But currently word is copying and pasting into the next column - whereas I'd like it to iterate through and insert each array item into a column to the right, rather than going down by row. I hope that makes sense (and gives a bit more context).
I found a video on YouTube where the author suggested putting the word document into columns to “fool” word into delivering the desired output - which it did!
Hi,
I am creating a flow to populate a word document when a form is filled. I am not sure what format the document created is. I get an email, and the attachment is not a word document.
the flow is attached below.
1
2
This is the output and the attachment is not a proper .doc or .docx file. There are no errors or warnings on the flows as well.
3 - output. the attachment is not a word format document or .docx..
Need your inputs to resolve this.
User | Count |
---|---|
96 | |
40 | |
25 | |
22 | |
16 |
User | Count |
---|---|
129 | |
51 | |
48 | |
35 | |
24 |