cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Community Support
Community Support

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.

Highlighted
Frequent Visitor

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

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (9,171)