Hello Community,
I need your help please!
I've built a Power Apps, that puts an attachment into a SP List, then I have a Power Automate that takes that attachment send an approval and creates a file in a holding location, then Moves the document, checks it out, updates properties, checks in as a Major Version.
This is perfect for what I want, BUT each time the workflow triggers and I have a REPLACEMENT file the document version is not replaced, it starts again a version 1
Any ideas on HOW to get the version to move from 1 to 2, etc....
This is my current flow
Any suggestions on how to get the Version numbers to override the current document would be gratefully received.
Thank you in advance for your assistance
Kind regards
Claire
@annajhaveri , Thank you
Unfortunately that did not work, I received an error, document needs to be checked out first before making changes
So I moved the REST Api action, but the Version number does not update
The REST Api is configured as follows,
Regards
Claire
It would be the name of the file with extension, this you could be using in Create File action as well previously so use same dynamic content here for file name.
Thank you for your assistance so far, apologise but I've not used REST Api's before, are you able to advise which dynamic content I should be adding as highlighted.
I appreciate your assistance with this issue.
Kind regards
Claire
Put the REST Api action before create file, also if you can do this in separate test flow that would be helpful, just check versioning. It does create new version, i tested it on my end.
One more thing, i also tried using Create File and tried it for same file and that also created new version for me, not sure why it didnt work for you, try Rest API if that works for you.
Thank you for coming back to me
Sorry to ask, but I have not used REST API before,
Where would I put that action in my workflow? and Does it update the Version number?
Thank you
Claire
Hello,
You can configure the Send HTTP action as follows to upload file
Hello Community,
I've put a post regarding REST API, but I've not had any updates,
Can anyone help me with Rest API, I'm trying to change the version number in my flow on my original post as each time the flow runs it creates version one again, but I want the version number to change as the document is potentially a replacement.
Can anyone provide screen shots, or how to achieve this?
Thank you
Claire
Thank you for the advise
I've not done a Rest API before, are you able to provide screen shots, or how to achieve this?
Do I need to change anything on my current flow, or is this a new action being added?
Thank you in advance,
Claire
You could try creating file using Rest API to create new file as new version, instead of overwriting
@annajhaveri
The reason why I added a Move File was that I was having an issue with moving as it said the file already existed, I've put a previous post Create File - allow duplicates
So I believe the answer to your question in when its using the Move File
Thank you
Regards
Claire
stampcoin
51
Michael E. Gernaey
37
Super User 2025 Season 1
Chriddle
21
Super User 2025 Season 1