cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Not able to retrieve file version data from SPO in flow

Hi all, 

I am trying to create a flow that compares two values (version old (custom column) & version (common SP view column)), but having issues retrieving the version column in MS Flow. 

 

Capture.PNG
Does anyone know how to access the value of the document version?

thank you so much and best regards! 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Not able to retrieve file version data from SPO in flow

Hi @brinabee,

 

If you want to get the current version of the file, you could use Send an HTTP request to SharePoint action to get it.

I did a test on my side, you could create your Flow as follows.

Compare the get file attribute file class to the item attribute and configure Uri:

Then use Compose to output the file version information:

body('Send_an_HTTP_request_to_SharePoint')['d']['Odata__UIVersionString']

Image reference:

13.PNG

Version:

14.PNG

For more information on SharePoint http request, please refer to link:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

Please take a try.

 

Best Regards,

Barry

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Not able to retrieve file version data from SPO in flow

Hi @brinabee,

 

If you want to get the current version of the file, you could use Send an HTTP request to SharePoint action to get it.

I did a test on my side, you could create your Flow as follows.

Compare the get file attribute file class to the item attribute and configure Uri:

Then use Compose to output the file version information:

body('Send_an_HTTP_request_to_SharePoint')['d']['Odata__UIVersionString']

Image reference:

13.PNG

Version:

14.PNG

For more information on SharePoint http request, please refer to link:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-re...

Please take a try.

 

Best Regards,

Barry

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

View solution in original post

Highlighted
Regular Visitor

Re: Not able to retrieve file version data from SPO in flow

Barry, thank you so much! 

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
Top Kudoed Authors
Users online (8,741)