Skip to content

Commit 8e4c826

Browse files
committed
PR feedback
1 parent 831618e commit 8e4c826

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

support/power-platform/power-apps/connections/best-practices-when-updating-a-flow.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.custom: sap:Connections\Creating or updating connections
77
---
88
# Troubleshoot Power Apps flow integration issues
99

10-
*Applies to:* Power Apps
10+
*Applies to:* Power Apps
1111
*Original KB number:* 4477072
1212

1313
When integrating Power Automate flows with Power Apps, you might encounter various errors that prevent flows from running correctly. This article helps you troubleshoot common integration issues and provides best practices for managing flow updates.
@@ -45,16 +45,18 @@ Some Power Automate flows might fail to run in Power Apps and you might see an e
4545
4646
### Cause
4747

48-
This issue occurs when the Power Automate flow is updated to use a new connection, but the app still uses the old flow metadata. Even though the flow is updated, the apps that reference the flow still retain the previous flow metadata. To resolve this error, manually edit the app so changes appear in the app and the flow works.
48+
This issue occurs when the Power Automate flow is updated to use a new connection, but the app still uses the old flow metadata. Even though the flow is updated, the apps that reference the flow still retain the previous flow metadata.
4949

5050
### Mitigation steps
5151

5252
> [!NOTE]
5353
> Make sure to perform the following steps in the source or development environment and update the solution. After you update the solution in the source or development environment, export and import it into all target or production environments.
5454
55+
To resolve this error, manually edit the app so changes appear in the app and the flow works.
56+
5557
1. Open the app for editing using the [latest version of Power Apps Studio](/power-platform/released-versions/powerapps).
5658
2. [Remove the Power Automate flows from the app](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow).
57-
3. Readd the flows to the app.
59+
3. [Readd the flows to the app](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow).
5860
4. Save and republish the app.
5961

6062
## Error code "ConnectionAuthorizationFailed" on Power Automate flow run
@@ -183,8 +185,8 @@ This error occurs when the flow in the target environment has changes that aren'
183185
> [!NOTE]
184186
> Make sure to perform the following steps in the source or development environment and update the solution. After you update the solution in the source or development environment, export and import it into all target or production environments.
185187
186-
1. In the source environment, edit the app. Remove and then readd the flows to the app. Save and publish the changes.
187-
2. In the target environment, remove all unmanaged solution layers from the app and flow.
188+
1. In the source environment, edit the app. [Remove](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow) and then [readd](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow) the flows to the app. Save and publish the changes.
189+
2. In the target environment, [remove all unmanaged solution layers](/power-apps/maker/data-platform/solution-layers#remove-an-unmanaged-layer) from the app and flow.
188190
3. Export the solution and import it into the target environment.
189191

190192
> [!NOTE]
@@ -216,7 +218,7 @@ This error occurs when the app's flow metadata expects a specific connection ref
216218

217219
Reset the Power Automate flows in the app:
218220

219-
1. In the source environment, edit the app. Remove and then readd the Power Automate flows to the app. Save and publish the changes.
221+
1. In the source environment, edit the app. [Remove](/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow) and then [readd](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow) the Power Automate flows to the app. Save and publish the changes.
220222
2. In the target environment, remove all unmanaged solution layers from the app and Power Automate flow.
221223
3. Export the solution and import it into the target environment.
222224

@@ -228,9 +230,9 @@ Reset the Power Automate flows in the app:
228230
Change the connection from **Embedded** to **Invoker**:
229231

230232
1. To edit and update the flow settings, navigate to the Power Automate flow portal.
231-
2. On the flow details page, in the **Run only users** section, select **Edit**.
233+
2. On the flow details page, in the **Run-only user** section, select **Edit**.
232234
3. To update the flow connection source to **Invoker**, select **Provided by run-only user** and save.
233-
4. Verify by triggering the flow. You should now find the "install flow network" calls to be successful.
235+
4. Verify by triggering the flow.
234236

235237
## Failures caused by Power Automate flow updates
236238

@@ -264,7 +266,7 @@ If a response output is removed, Power Apps treats the value as blank and the ap
264266

265267
### Cause
266268

267-
Power Apps needs to know three things to invoke a flow: what inputs the flow requires, what connections to provide, and what outputs the flow returns. Power Apps stores this information in your app definition, creating a binding between your app version and the flows it uses. When you change any of these three flow aspects, you can break all previous app versions that integrate with that flow. To fix an affected app or use these flow changes, you need to update the app.
269+
Power Apps needs to know three things to invoke a flow: what inputs the flow requires, what connections to provide, and what outputs the flow returns. Power Apps stores this information in your app definition, creating a binding between your app version and the flows it uses. When you change any of these three flow aspects, you can break all previous app versions that integrate with that flow.
268270

269271
Types of changes most likely to break a Power Apps ability to call a Power Automate flow include:
270272

@@ -288,7 +290,7 @@ Other changes to the inputs or outputs might not break the integration between P
288290

289291
### Resolution
290292

291-
The approach you take to resolve the issue depends on whether you're working with a live app or a development version. Each scenario requires different steps to prevent disruption to users.
293+
To fix an affected app or use these flow changes, you need to update the app. The approach you take to resolve the issue depends on whether you're working with a live app or a development version. Each scenario requires different steps to prevent disruption to users.
292294

293295
#### Changing a published (live) Power App
294296

@@ -315,12 +317,10 @@ Follow these steps:
315317

316318
1. Make your changes to the flow (inputs, outputs, or connections).
317319
2. In Power Apps Studio, go to the **Flows** pane.
318-
3. Remove the flow from your app.
319-
4. Add the updated flow back to your app.
320+
3. [Remove the flow from your app]((/power-apps/maker/canvas-apps/working-with-flows#remove-a-flow)).
321+
4. [Add the updated flow back to your app](/power-apps/maker/canvas-apps/working-with-flows#add-an-existing-flow).
320322
5. Save your app.
321323

322-
:::image type="content" source="media/best-practices-when-updating-a-flow/reselect-flow.png" alt-text="Screenshot of updating a flow definition in Power Apps.":::
323-
324324
This process updates your app to use the flow's new configuration. Since the app isn't published yet, your changes don't affect users.
325325

326326
## References

0 commit comments

Comments
 (0)