Forum Discussion
Getting the Version number of a SharePoint document with Flow
Hello,
Your https://www.glennprince.com/blog/creating-a-version-monitoring-flow-in-sharepoint/ is really awesome and interesting.
I would suggest to refer below endpoint of SharePoint where you could reduce the number of steps.
GET: Minor Version
/web/getfilebyserverrelativeurl('/Shared Documents/filename.docx')/MinorVersion
GET: Major Version
/web/getfilebyserverrelativeurl('/Shared Documents/filename.docx')/MajorVersion
If you still need both Major and Minor version numbers, I may go with your way since multiple HTTP requests will reduce the performance of workflow.
Need to read more?
Find below reference from Microsoft MSDN
https://msdn.microsoft.com/en-us/library/office/dn450841.aspx
Kushan Perera | Microsoft MVP
Web: http://www.kushanperera.com
Blog: http://blog.kushanperera.com
Hi,
Thanks for the feedback. When I was originally looking into this those endpoints didn't exist. For what I am using it for it is more useful to get both components of the version number but I will have to update the article to include some notes about those endpoints.
Glenn