cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jason_David
Level: Powered On

Restoring list item with REST

All, 

I have been searching and i need to restore a list item using versioning with FLOW using REST. I have acheived this with a documnet library with /restorelabel at the end of the url and this works (I get a 200). I have also attempted it by 

 

/_api/web/Lists/getbytitle('VersionTest')/items(1)/versions(512)/RestoreVersion

 

And the versions works great, but when i put RestoreVersion at the end i get a 400 error. I am just wandering has anyone sucessfully restored a list item using MS FLOW SharePoint REST. 

 

thanks, Jason 

2 REPLIES 2
Community Support Team
Community Support Team

Re: Restoring list item with REST

Hi @Jason_David,

 

Currently, the SharePoint connector can only get the latest information on the list items.

If you want to get the previous versions of list items from SharePoint list, you can refer to this post @slittle's reply:

https://powerusers.microsoft.com/t5/General-Flow-Discussion/How-to-get-previous-versions-of-a-list-i...

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jason_David
Level: Powered On

Re: Restoring list item with REST

No, that’s not truly correct as the API with /restorelabel works fine - it restores the old version of the item using rest and SharePoint UI is reflected as such... so I need to get this working for a list item or I need answers why /restore on the other Rest API does not work... I am not looking at getting previous versions of the listitem in flow , I am looking at the physical action of changing the UI

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 82 members 3,226 guests
Please welcome our newest community members: