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

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,510)