cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zBestData
Regular Visitor

Updating SharePoint List Items by column value

I need to update a SharePoint List from a JSON API that will be pulled daily.  How can I do that using an ID that is in the JSON data.  Right now, the delete fails because it wants sharepoint's internal ID and it is creating duplicates of the records that is already there.  I can't delete and replace the entire list because we need to retain those items after they have been dropped from the api.  

 

 

Delete Failure.png

1 ACCEPTED SOLUTION

Accepted Solutions
Hardesh15
Super User
Super User

@zBestData  First you need to check whether that json id item exist in SharePoint list if it is not exit then create item.

Use get items with filter query (more details about filter query-SharePoint Get Items and Filter Query in Flow [Part-2] | Gopenly then use length() for counting. 

 

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

View solution in original post

2 REPLIES 2
Hardesh15
Super User
Super User

@zBestData  First you need to check whether that json id item exist in SharePoint list if it is not exit then create item.

Use get items with filter query (more details about filter query-SharePoint Get Items and Filter Query in Flow [Part-2] | Gopenly then use length() for counting. 

 

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

Thank you!  That is what I needed.

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 (1,825)