cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SteveTurner
Frequent Visitor

Populate Word Document - Multiple Apply to each

Hoping someone can help.

 

When building a Populate Word Template flow from SharePoint List, I'm running into issues populating more that 1 choice field in the Word template.

A single Choice field populates fine, and creates my file. When I add additional fields, which then creates nested Apply to each the flow shows success but never completes or creates the file, in the flow history the additional apply to each are greyed out.  

 

Flow Build - Single Choice Field Working

FloBuildSingle.PNG

 

Flow Build - Multiple Choice fields - Nested Apply to Each - Not completing - Flow history

Greyed.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SteveTurner 

 

I didn't asked anything about add attachment. I still believe your logic is not correct here. Check my previous response and reply.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

View solution in original post

7 REPLIES 7
abm
Super User
Super User

Hi @SteveTurner 

 

Check your flow run history and see each steps output.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
SteveTurner
Frequent Visitor

Hi @abm 

 

I'm unable to see the outputs from "Apply to Each", they are greyed out. I can see the outputs from "Selected Item" and "Get Item" 

 

Thanks, 

Steve

Hi @SteveTurner 

 

Could you post a screenshot of your flow please?

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
SteveTurner
Frequent Visitor

@abm Please see flow 🙂

Flow1.PNG

Flow2.jpg

Hi @SteveTurner 

 

Thanks for the screenshot.

 

I can see you have three apply to each loop here.

 

Also could you post the run time history of values of Stage 2 Checks, Funding Priority & Target Group values.


One thing I noticed here is 'Apply to Each 3' loop populates the word template and create file. That means if you have 5 values then 5 iterations for this loop and it creates five files. Are you sure this looping logic (Apply to each 3) is correct?

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
SteveTurner
Frequent Visitor

Hi @abm

 

Here's the stages I've used to create the flow. 

 

New Instant > For Selected > Get Item > Populate Word Template 

 

As you add the choice fields the to the template, it automatically adds in the nested Apply to Each steps. 

Word file content is only available following the template population in the last "Apply to Each"

 

Word.PNG

Hi @SteveTurner 

 

I didn't asked anything about add attachment. I still believe your logic is not correct here. Check my previous response and reply.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,620)