cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

HTTP Request for trigger document version returns only up to the previous version

Hi,  following suggestions in this and other forums, I've created an Approval workflow.

 

The trigger is "When a file is created or modified (properties only)".  If I check out a document in a library, then update it and check it back in as a minor revision, say "5.2", the flow is triggered.

 

Since I want to use the current version number in an approval email, I get the current file properties, and metadata, then use a Sharepoint HTTP request to retrieve the version information:

HTTPS request.png


The problem is that the JSON dataset returned contains all of the version information up to but excluding the version that triggered the flow.  i.e. if the triggered version is "5.2", it returns "VersionLabel""5.1" , with "IsCurrentVersion"false.

 

Is there any way to ensure I get the version of the document that actually triggered the flow?

 

I know as a work-around I can impute the trigger version by manipulating the "VersionLabel" node value, but there are other reasons I want to ensure I'm pointing to the actual trigger version file information.

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi @Anonymous,

 

thanks for feedback.

The issue could be reproduced by me. I will help report it and back to you later once I got any updates.

 

Best regards,

Mabel

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,982)