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 / Flow works but runs sl...
Power Automate
Answered

Flow works but runs slowly - wondering if it could be better

(0) ShareShare
ReportReport
Posted on by 14

Hello! 😄

 

I have a flow that runs a query on a PowerBI dataset, parses the results and then either (a) updates an item in my Sharepoint list if it's already existing or (b) makes a new Sharepoint item. 

 

The flow determines if it's new or existing by filtering for items that have the same 'Title' (plain text field) AND the same 'Name Only' (plain text field). 

 

It works but it's slow, around 30 min for 500 items. I'm wondering if this is an acceptable time for this to take or if I should be doing something different in my flow to make it faster? 

 

Pictures attached.

 

Thanks!

 

Flow1.PNG
Flow2.PNG
Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @theappwhisperer 

     

    To optimize, you could use 'Get items' action without filter query before loop (For each 1) and within loop you could use filter array to check for the existence of item in SharePoint list. This would avoid network call (get items) for every item as we have already had already those as output of get items action.

     

    You could try & check if that optimize the execution time of the flow.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

     

     

  • theappwhisperer Profile Picture
    14 on at

    Hey, I've tried to use your suggestion but keep getting an error message. I seem to be able to do a single condition but when I try to add the 'and' component, it won't work. Do you know what I'm doing wrong? Pic attached.

    filterarray.PNG
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @theappwhisperer 

     

    You need to refer column value using item function in query. Here is an example of complex filter query, pls modify it as per the need:

    @and(equals(item()?['Title'],'<dynamic value>'),equals(item()?['<column internal name>'],'<dynamic value>'))

    Basically, item takes internal name of the column in SharePoint list. You need to pass the dynamic value from previous action for comparing with SharePoint column values.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard