microsoft / powercat-business-approvals-kit

MIT License
35 stars 3 forks source link

[Business Approvals Kit - BUG] Canceled Request not updating the Business Approval Tables #290

Open MCSDWes opened 3 months ago

MCSDWes commented 3 months ago

Describe the issue

When an end-user cancels an approval the BusinessApproval Tables are not getting updated properly.

Approvals Table - Result column equals "Canceled" Business Approvals Instance Table - Outcome is "Null" image

Also, the Stage and Node instances still say "Running" image

Expected Behavior

Business Approval Instance Table - Outcome should be "Canceled" to match the Approvals table. The Stage and Node Instances should be "Canceled" instead of "Running"

What solution version are you using?

1.0.20240702.1 = July Release

What app or flow are you having the issue with?

NA

Steps To Reproduce

It would also be helpful to have a schema diagram to see how all the tables link together, it took me a while to track all of this down.

Anything else?

No response

azuappsautomate commented 1 month ago

Found the flow that was failing on Canceled Request = BACore | Runtime - Update Approval Error message = The error occurred because the 'cat_outcome' parameter is null, but the action expects a value of type 'String' or 'Integer'. To fix this, you should verify that the 'cat_outcome' parameter is correctly populated in the triggerOutputs from the previous operation. Check if the data is being retrieved and assigned properly to 'cat_outcome' before the switch statement.