web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / insert update (upsert)...
Power Automate
Answered

insert update (upsert) Excel to SharePoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous ,

     

    Could you please explain upsert Excel to SharePoint list means? 

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @Anonymous ,

     

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard