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 Automate / Iterate through Create...
Power Automate
Answered

Iterate through Created By column in SharePoint list and email them about their pending requests

(0) ShareShare
ReportReport
Posted on by 1,247 Super User 2024 Season 1

Dear All,

 

I would like to extract all the names of the creators of pending request and send them updates about the status of their request which is stored in SharePoint.

 

I am trying to do something similar (i guess identical 🙂 )  to what has been explained here

https://spodev.com/task-reminders-microsoft-flow-and-sharepoint/

 

Please note that since i am using the Created By field ( we cannot keep this as a multiselect column as required by the above post)

Screenshot1.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Formulas that i am using:-

Append to array variable

first(items('Apply_to_each')?['Author'])?['Email']
 
Initialize Emails
union(variables('EmailArray'), variables('EmailArray'))

 

Filter Array 2

first(item()?['Author'])?['Email'] equal to first(variables('Emails'))
 

Here i am getting the following error

Unable to process template language expressions in action 'Append_to_array_variable' inputs at line '0' and column '0': 'The template language function 'first' expects its parameter be an array or a string. The provided value is of type 'Object'.

 

 

 

Anonymous_Hippo_0-1647625680244.png

 

To fix this issue i tried changing the the following formulas (basically removed the first function)

 

Append to array variable

items('Apply_to_each')?['Author']?['Email']

 

Filter Array 2

item()?['Author']?['Email'] equal to first(variables('Emails'))

 

Doing this get it to work but i am stuck in an endless loop and it does not seem to be iterating. How can i fix this

 

Thank you!!!

Categories:
I have the same question (0)
  • Verified answer
    Anonymous_Hippo Profile Picture
    1,247 Super User 2024 Season 1 on at

    I was able to solve my issue by using a apply to each block instead of a do until block

    here is my updated flow

    Anonymous_Hippo_0-1647792682155.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard