cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djjonesy
Level: Powered On

Setting SharePoint ID - Slow

Hi All,

I have a flow which parse data from various API calls into a SharePoint list.

I want to be able to append changes to the items in this list - for example if an API call returns a statement that a setting has changed it would update the setting on this item rather than create a new item. 

 

I have in my flow therefore a Apply to Each with a condition that is if SharePoint ID is Greater than 0 set the SharePoint ID variable. Screenshot below. 

However, this seems to take 300% longer than if I delete all data from the list and let the flow enter the data each time. Example - fresh empty list flow takes 5-6 minutes. With data in and setting SharePoint ID the task takes 23-25 minutes and the total flow takes around 30 minutes to complete.  Am I adding the loop to the wrong place perhaps? 

 

Is there a more optimised way for me to set the SharePoint ID or indeed an alternative method to use some logic that goes along the lines of "If Item Exists then append, Else create"

 

Thanks in advance! 

 

Set SharePoint ID.JPG

 

@RezaDorrani  

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Setting SharePoint ID - Slow

 

Hi @djjonesy ,

 

You could consider using Filter array instead of Condition.

Like:

139.PNG

And increase the Degree of Parallelism to apply to each to improve the efficiency of execution.

140.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Setting SharePoint ID - Slow

 

Hi @djjonesy ,

 

You could consider using Filter array instead of Condition.

Like:

139.PNG

And increase the Degree of Parallelism to apply to each to improve the efficiency of execution.

140.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
djjonesy
Level: Powered On

Re: Setting SharePoint ID - Slow

This worked really well thank you! 

HelplessMax
Level: Powered On

Re: Setting SharePoint ID - new item

Hi everyone,

 

my question goes in a different direction, sorry if this is the wrong place for it:

 

Anyways i have two Sharepoint Lists:

 

List 1: items to be approved (Titel, ID ......)

List 2: items that have been approved


Whenever the item from List 1 has been approved it creates an element in List 2 but with a new ID.

Is there any way to carry the old ID to the new element?

 

 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,432)