cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
brinabee
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
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
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

sabrinahota
Regular Visitor

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

Barry, thank you so much! 

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,228)