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

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.

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

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,333)