microsoft / powercat-business-approvals-kit

MIT License
35 stars 4 forks source link

[Business Approvals Kit - BUG] Dynamic User - Manager of Last Approver #224

Closed MCSDWes closed 7 months ago

MCSDWes commented 8 months ago

Describe the issue

Similar issue to #191 which is now working as of March release- If using the Manager of Last Approver the flow is failing. Seems to only fail when adding a new approver. If existing then it seems to run fine. I resubmitted the flow which went down the false path and worked correctly.

Below is the Process Designer View: image

The flow found the correct person but failed in the Lookup UPN Scope - Set New Approver Data Approver ID and Name is correct: image

Expected Behavior

Expected Behavior would be the flow finds the Manager of the Last Approver and sends an approval out.

What solution version are you using?

1.0.20240305.1 = March Release

What app or flow are you having the issue with?

BACore | Child | Get Dynamic Approver

Steps To Reproduce

See the screenshot above with the layout of the Process

Anything else?

Error Message for Set New Approver Data InvalidTemplate. Unable to process template language expressions in action 'Set_new_approver_data' inputs at line '0' and column '0': 'The template language function 'first' expects its parameter be an array or a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#first for usage details.'.

AB#2516