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 III
Super User III

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 blogPower Automate Video Tutorials
yus
Advocate III
Advocate III

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

abm
Super User III
Super User III

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 blogPower 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.

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (89,046)