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

Why fetch the data from the Sharepoint list twice?

(0) ShareShare
ReportReport
Posted on by 1,042

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

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