web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Iterate through Create...
Power Automate
Unanswered

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
    Re: Iterate through Created By column in SharePoint list and email them about their pending requests

    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

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
Tomac Profile Picture

Tomac 532 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 461 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 256

Last 30 days Overall leaderboard