I need to iterate through a list and go to each version history and restore a certain version.. I am doing all of this with MS FLOW.

I am trying to get the restoreVersion working like Restore a previous version of a ListItem

I am using this on MS FLOW to get the item to restore and i keep getting an 404 error, any idea whats wrong ?

  • What is an error message? Are you passing correct version-id? – Ganesh Sanap Aug 20 '19 at 10:50
  • I am getting a 404 error not found... The version id i am passing is (1) – Jason Hough Aug 20 '19 at 11:09
  • You can check from UI, the version id is correct or not. – Ganesh Sanap Aug 20 '19 at 11:20

You are not passing version ID in your REST endpoint, you are passing VersionLabel.

To check the correct version ID of your list item, use below URL:


And search for VersionId. It will give you the correct version ID of list item.

I have enabled the versioning on my list and it is creating a major version each time the item is edited.

So, for VersionLabel = 1.0, VersionId is 512 and for VersionLabel = '2.0, VersionId is 1024.


How does versioning work in a SharePoint list or library.

  • yep completly get that - understood and i easily get the number from my other bits of code... but when i use POST and enter /restoreVersion on the end of the url , i get an 404 .. its like the restoreVersion part is broken. – Jason Hough Aug 20 '19 at 12:09
  • any idea why RestoreVersion is not working ? I am getting an 404.... can anyone help ? – Jason Hough Aug 20 '19 at 12:57
  • All , this is getting urgent now , just wandering if anyone can help me – Jason Hough Aug 20 '19 at 17:41
  • has anyone got any advice or how to do this as this is a struggle... please.. – Jason Hough Aug 21 '19 at 9:48
  • What error are you getting now? Is there any additional error text you can provide? Also, try doing the same using JavaScript/JQuery(Ajax or something) REST API instead of Flow to check if it works or not. – Ganesh Sanap Aug 21 '19 at 9:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.