As we all know using Power Apps in combinations with Power Automate to run flows is a real winner. You can call a Flow to do all the complicated stuff while you keep your code in Power Apps simple and easy to understand.
Yesterday however I came across a bit of strange behaviour.
I started by create version 1 of my Flow
Then I run my flow from a button
Renaming flows
Then I rename my flow to V2 Flow
Even though I renamed the flow my flow will still run when I click the button. This is probably quite good as you might not want all your apps to break
To clean things up I then re-add my flow and now the code will show V2Flow.Run() instead of V1Flow.Run(). Ok So far so good.
When I look at the connections everything seems to be fine.
Now I’m exporting my app
And I’m importing my app again
But as a I rename my flow the connection is showing up a bit weirdly. There seems to be a Display name and a run name for a flow.
This is different behaviour for if you have imported the Powerapp or if you have just created a Powerapp.
So what does this mean?
Now that I’ve updated my Flow name the code looks like it is still running v2 of my flow where actually v3 is called. This will make the code potentially confusing. You can of course update all occurrences of the flows but this is quite a painful process if you end up with larger apps having many flows started from the app.
So what should we do?
Try to avoid changing flow names is the better approach. Try to avoid flow names that have version numbers. And the same of course for names that are different between environments. I often see flows being names something like MyFlow_DEV_v21. Just call it MyFlow and keep track of your versions in a different way.
Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like.
I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@sharepains.com
Is your business still running on paper trails, sprawling Excel files, or ageing Access databases? There's a better way — and I can show you exactly what it looks like.
I'm the Technical Director of Vantage 365, a Microsoft solutions consultancy working with clients across the UK, the Netherlands, and worldwide.
For over 30 years I've been turning messy, manual business processes into clean, automated systems that save time, reduce errors, and give teams the visibility they need to make better decisions.
SharePains is not just any blog run by a Microsoft MVP. Have you ever used Try-Catch in Power Automate? The original post about Try-Catch in Power Automate can still be found on this site, https://sharepains.com/2018/02/07/try-catch-finally-in-power-automate-flow/
Or have you ever used the Pieter’s method to avoid variables and speed up your flows? https://sharepains.com/2020/03/11/pieters-method-for-advanced-in-flows/
You can contact me using contact@sharepains.com
One thought on “Renaming flows run from Power Apps”
Having worked with most of the workflow solutions since Staffware was released in 1985, the lack of any proper versioning/publishing of flow definitions is staggering for an ‘Enterprise ready’ product. How difficult would it be to apply similar SharePoint checkin/out minor/major versioning functionality to the flow XML definition? The fact you can only ever work on the ‘live’ version is ridiculous, Save As is NOT the answer!
Having worked with most of the workflow solutions since Staffware was released in 1985, the lack of any proper versioning/publishing of flow definitions is staggering for an ‘Enterprise ready’ product. How difficult would it be to apply similar SharePoint checkin/out minor/major versioning functionality to the flow XML definition? The fact you can only ever work on the ‘live’ version is ridiculous, Save As is NOT the answer!