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 Apps / Power Automate - Getti...
Power Apps
Answered

Power Automate - Getting Email address from Claims in Apply To Each Loop

(0) ShareShare
ReportReport
Posted on by 143

Have a Sharepoint List of work items with assigned person and status column. I need to send weekly emails for open items

The Flow works and send email if I directly put in my name in the TO box, but I want the email to go the assigned person

johnnykalsi_0-1691518727383.png

johnnykalsi_1-1691518832436.png 

 

Getmailadd is where I'm getting the email address and the output looks like this

 

johnnykalsi_2-1691519036412.png The same email is repeated over for the # of items...then it does the same for the 2nd person and so on

I need to send an email to the tempemail person but not being able to get that. I used the following syntax in the Send Email TO

 

outputs('getmailadd')['body/tempemail']

 

But it doesn't work. 

 

Categories:
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @johnnykalsi,

     

    It looks like you are currently already looping through the unique array of PA Emails - created from your Select statement.

     

    In this case you can use the following as TO parameter:

    item()?['PAEmail']

     

    Should PAHolder be a person field, use:

    item()?['PAEmail']?['Email']

     

    If you want to send an email to all people in that tempemail array. Adjust your getemailadd array to create an array without a column name. This can be done by using a Select statement and selecting the icon on the right:

    LaurensM_0-1691521086714.png

    Instead of providing a column name and a value, select the icon and put the value in the single column text bar.

    Your TO parameter will be:

    //Change Select to the correct Select action name e.g. Select_3 or getmailadd...
    join(body('Select'),', ')

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • johnnykalsi Profile Picture
    143 on at

    Awesome...thank you

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 Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard