Notes on how to change the state of a step from ‘processing’ to ‘successful’ when executing a flow step of a business process flow in a model-driven application.
Flow steps in business process flows
Flow Step in Business Process Flow is the ability to incorporate the execution of Power Automate as a step in the stages of a business process flow.
Further information.
Power Apps モデル駆動型アプリで「ねこ管理アプリ」を作ってみる|第5回 ワークフローとフローステップ
2024/5/18:UIを最新版に更新 モデル駆動型アプリを使って「ねこ管理アプリ」を作ってみたシリーズ第5回。 今回は前回作ったビジネスプロセスフローに「ワークフロー」と「Power Automateのフロー(フローステップ)」を実装して
The status of the flow step does not change from ‘Processing’.
With a business process flow containing the flow steps as shown in the image,
when the Power Automate to be executed in this flow step is such an implementation,
perform flow steps,
flow succeeds, though,
the status of the business process flow remains ‘in process’.
This ‘processing in progress’ status should be changed to a status such as ‘completed’ or ‘successful’.
Solution: update the Dataverse table ‘Process Log’.
The solution is described on the official website here and seems to be to update the ‘process log’ table.
ビジネス プロセス フロー内のインスタント フローを作成する - Power Automate
ビジネス プロセス フロー内のインスタント フローの作成方法について
Add an action ‘Update row’ at the end of the flow and specify [ID] in the ‘Flow workflow log ID’ that can be retrieved from the trigger against the table ‘Process log’ and set the [Status] to ‘Successful’.
Then run the flow step again, with a successful flow,
the status of the business process flow changes to ‘successful’.
There are various statuses other than ‘successful’, so the statuses around here can be updated depending on the behaviour of the flow.
*Official reference for table ‘Process log’.
Process Log (WorkflowLog) テーブル/エンティティの参照 (Microsoft Dataverse) - Power Apps
Process Log (WorkflowLog) テーブル/エンティティのスキーマ情報とサポートされているメッセージが含まれます。
コメント