web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Apply to Each and Filt...
Power Automate
Unanswered

Apply to Each and Filter Query

(0) ShareShare
ReportReport
Posted on by 372

I have this database:

firda59_2-1685354305481.png

 

I want to collect data based on its Job No. I used this flow:

firda59_0-1685354631538.png

 

firda59_1-1685354678080.png

 

But, the PDF I get just collect 1 row in two file, like this.

firda59_3-1685354441825.png

firda59_4-1685354487347.png

 

What is wrong with my flow? It should be 2 row are recorded in the PDF file.

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    The create file needs to be outside the loop, it is now in the loop which is why its creating 1 file per item found 🙂 

  • firda59 Profile Picture
    372 on at

    But, it make the flow error, like this:

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Create_file_2' at line '1 and column '8495' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Create_file_2' to be referenced by 'repeatItems' or 'items' functions.'.'.

    Capture.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard