cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yus
Advocate III
Advocate III

insert update (upsert) Excel to SharePoint list

Hi,

 

I'd like to know how to how to upsert Excel to SharePoint list. Excel column is used by filter query in Get Items and following actions, so it is configured 'nested loop'. Then create and update action doesn't work with no error.

Please give me someone advice for avoiding 'nested loop'
キャプチャ.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @yus ,

 

Do you mean that Flow is executed successfully, but isn't any item updated or created?

The occurrence of a nested loop is the expected result. I speculate that Filter Query causes the Body of Get items to be empty.

Please check the Flow run history and check the execution result of Get items.

 

In addition, you could try to improve your flow according to the screenshot below.

8.PNG

 

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

5 REPLIES 5
abm
Super User
Super User

Hi @yus ,

 

Could you please explain upsert Excel to SharePoint list means? 

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
yus
Advocate III
Advocate III

It is incremental update. Update exist records and insert new records.

abm
Super User
Super User

Hi @yus ,

 

Thanks for your reply.

 

Try  flow step send an http request to SharePoint instead Get Items.

 

/_api/web/lists/getbytitle('listname')/Items?$select=Title&$filter=((Title eq 'example 1').

 

Next step use the JSON Parser. Then check the if condition to check the value is exists or not?

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
yus
Advocate III
Advocate III

Thank you for reply.
Your suggestion is same result. Nested loop makes fail update or insert with no error. It seems Excel array and get_listItem (=Parse Json) array make the situation.

 

 キャプチャ.PNG

v-bacao-msft
Community Support
Community Support

Hi @yus ,

 

Do you mean that Flow is executed successfully, but isn't any item updated or created?

The occurrence of a nested loop is the expected result. I speculate that Filter Query causes the Body of Get items to be empty.

Please check the Flow run history and check the execution result of Get items.

 

In addition, you could try to improve your flow according to the screenshot below.

8.PNG

 

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,554)