cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
brinabee
Level: Power Up

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 Team
Community Support Team

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.
2 REPLIES 2
Community Support Team
Community Support Team

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.
sabrinahota
Level: Powered On

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

Barry, thank you so much! 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 47 members 4,466 guests
Please welcome our newest community members: