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

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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard