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 / Send Email Flow from a...
Power Automate
Unanswered

Send Email Flow from a Filtered Sharepoint List

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I'm trying to set up a flow where I can send reminders for people that are in charge of an action that has not been done yet. It's a 3 day out of due date reminder. I use get itens to filter the sharepoint list to the values that I need. And so far this is working good. 


The problem starts in the "Send E-mail" step. I need to send an e-mail for every e-mail in "Responsável" field for each of the actions that will be soon overdue.

 

The problem is that I'm entering in an automatticaly "Apply to each" box that always shows this error message: "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']' is of type 'Object'. The result must be a valid array."

 

Relevant Information: The responsible field is set for "Person or Group" and can have more than one person as responsible. When I add only "Responsável" than there is no error, the problem is that it returns information like this: [{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|XXXXXXXXX","DisplayName":"XXXXXX","Email":XXXXXX","Picture":"XXXXX","Department":"XXXX","JobTitle":"XXXXXX"}] which can't be used in the field "Send to".

I need to get the values "Responsável" DisplayName and "Responsável" Email without entering this apply to each.

Captura de tela 2023-01-11 170249.jpg

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-chengfen-msft Profile Picture
    on at

    Hi @guilhermeareias ,

    Do you want to send a separate email to each person in the "Responsável" Person column?

    I made a template for your reference

    vchengfenmsft_0-1673491889971.png

     

     

    Best Regards

    Cheng Feng

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard