cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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
Highlighted
Community Support
Community Support

Re: Setting SharePoint ID - Slow

 

Hi @Anonymous ,

 

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
Highlighted
Community Support
Community Support

Re: Setting SharePoint ID - Slow

 

Hi @Anonymous ,

 

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
Anonymous
Not applicable

Re: Setting SharePoint ID - Slow

This worked really well thank you! 

Highlighted
Helper I
Helper I

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

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (10,286)