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

Notifications

Announcements

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:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard