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 / Update a variable insi...
Power Automate
Unanswered

Update a variable inside a child flow?

(0) ShareShare
ReportReport
Posted on by 101

I have a child flow that takes email attachments as an input (below). This child flow checks for each attachment whether it's a .pdf file - if all attachments are .pdf's, the mail will be marked as read. Otherwise, the mail remains unread. For this, I'm using a variable called 'readMail', which is initialized to 'true', and is to be changed to 'false' if a non-.pdf attachment is found.

(The actual conditions are a lot more complex than this)

alex93jansen_0-1601415871823.png

The issue is that while I'm able to pass the readMail variable to the child flow, it shows up as Dynamic Content inside the child flow, so I can't update it.

My other thought was to initialize a variable inside the child flow, and only put it in the response if the conditions aren't met, but responses must always include the same info for a Status code.

 

So I'm at a bit of a loss here. I can't initialize a variable inside the "Apply to Each" block, but I'm also unable to modify variables initialized outside of it.

 

Categories:

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard