Skip to main content

Notifications

Power Automate - General Discussion
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.

 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard