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 / Power Automate - If It...
Power Automate
Answered

Power Automate - If Item exists, update row, do not create duplicates. If new item then create row.

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

I am trying to use a power automate to 

1) Create NEW items

2) If Item exists - update item and row

3) Do not create duplicates.

 

 

step 1 - i am creating items in my sharepoint list via an excel table.

wonka1234_0-1682012943107.png

Step 2 - now that these are created, how can I view update values in this row each time the flow is ran and not create duplicates?

 

condition - length(outputs('Get_items')?['body'])

wonka1234_1-1682013134899.png

 

getting an error on my condition - "Action 'Condition' failed"

 

any help would be appreciated.

Categories:
I have the same question (0)
  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

     

    Trying this - cant get this to work - not sure what ID is or if my condition length is accurate - length(body('Filter_array'))

     

    wonka1234_1-1682016412827.png

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @wonka1234,

    Do you want to sync the SharePoint list based on excel?

     

    Actually, I think you should also list the items from the SharePoint list if you want to avoid creating duplicates because you need to compare if there is existing items the same as the new items from Excel file.

     

    Here is a simple demo for your reference:

    vqiaqimsft_0-1682056006294.pngvqiaqimsft_1-1682056014145.png

    Write the following expression for the condition:

    length(outputs('Get_items')?['body/value'])

    vqiaqimsft_2-1682056138626.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard