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 / Create variables from ...
Power Automate
Unanswered

Create variables from AI extract from document in a foreach loop

(0) ShareShare
ReportReport
Posted on by

HI Everyone, 

New to Power Automate so this is most likely a silly question 🙂 

 

I have created an AI model to read purchase order information I need it in a for-each loop because one email could have many attachments and I also need to create a Variable CompanyName that'll be used later in the flow. But I can't get it to work. Variable is always Null. If I take the foreach loop out it works.

 

Automate.PNG

 

The company name is the same for each attachment on the email. Can someone please suggest how I resolve this ?

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 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard