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.

View solution in original post

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.

View solution in original post

sabrinahota
Level: Powered On

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

Barry, thank you so much! 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 150 members 5,185 guests
Please welcome our newest community members: