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 / Why fetch the data fro...
Power Automate
Answered

Why fetch the data from the Sharepoint list twice?

(0) ShareShare
ReportReport
Posted on by 1,054

Dear Experts,

 

I have a flow that get's all the users from a certain department of a sharepoint list and display the members in an Adaptive Card. The flow works great. Only when it reaches the Apply to each the search will be slow down. What i do not understand is after the users of a certain department will be quieried in the Get-items connector it will then search again in the list in the Apply to each. Can this be done without the Apply to each. Or maybe is there a way to speed up the search. 

 

PeKi72_0-1673849639506.png

 

PeKi72_1-1673849658934.png

 

PeKi72_2-1673849678413.png

 

PeKi72_3-1673849707175.png

 

PeKi72_5-1673849745719.png

Gr. P

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    Even if just a single item is returned from Get items, it still stores the item in an array. So, you will still get an Apply to each for a single item. This is fine as your Apply to each will just loop once then then stop. It doesn't actually go back to SharePoint to get the values again - it retrieves the values from what was returned in your Get items.


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

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

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard