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

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

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

Barry, thank you so much! 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (3,980)