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.

Highlighted
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

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,679)