microsoft / powercat-business-approvals-kit

MIT License
35 stars 4 forks source link

[Business Approvals Kit - BUG] Is Blank/ Is Not Blank operands not working #218

Open shrikant-singh31 opened 8 months ago

shrikant-singh31 commented 8 months ago

Describe the issue

Currently if we use Is Blank/ Is Not Blank operand the flow gives below error.

InvalidTemplate. The execution of template action 'Evaluate_Each_Condition' failed: The evaluation of 'query' action 'where' expression '{ "_809060006": "@startsWith(variables('varSourceData')['raw'],item()['cat_conditionvalue'])", "_809060007": "@endsWith(variables('varSourceData')['raw'],item()['cat_conditionvalue'])", "_809060008": "@contains(variables('varSourceData')['raw'],item()['cat_conditionvalue'])", "_809060009": "@equals(variables('varSourceData')['raw'], null)", "_809060010": "@not(equals(variables('varSourceData')['raw'], null))", "stageid": "@item()?['_cat_gotostage_value']", "path": "@item()?['cat_pathindex']" }' failed: 'The template language expression 'startsWith(variables('varSourceData')['raw'],item()['cat_conditionvalue'])' cannot be evaluated because property 'cat_conditionvalue' doesn't exist, available properties are '@odata.type, @odata.id, @odata.etag, @odata.editLink, cat_pathindex@OData.Community.Display.V1.FormattedValue, cat_pathindex, cat_businessapprovalruntimeconditionid@odata.type, cat_businessapprovalruntimeconditionid'. Please see https://aka.ms/logicexpressions for usage details.'. image

Expected Behavior

The selected operand should work as expected.

What solution version are you using?

1.0.20240206.2

What app or flow are you having the issue with?

BACore | Child | Evaluate Rule

Steps To Reproduce

  1. Create a process with some variables in it.
  2. Try adding a condition in Stage with operand selected as Is Blank/ Is Not Blank.
  3. Try running the process. The BACore | Child | Evaluate Rule flow fails with an error.

Anything else?

No response

AB#2433