microsoft / powercat-business-approvals-kit

MIT License
35 stars 4 forks source link

[Business Approvals Kit - BUG] The number type variable does not allow for float #285

Open mmwc1 opened 4 months ago

mmwc1 commented 4 months ago

Describe the issue

I am trying to set up conditions for testing numbers with decimal points. When I used a parameter of type number and passed a value with decimal point to the Start business approval process step, then the Input parameter 'query/parametername' is required to be of type 'Integer/int32'.

Expected Behavior

Could you add an input type for numbers, which can be used to send numbers with decimals? There can be cases where the user might need to set up conditions check for a workflow based on a float instead of just an integer.

What solution version are you using?

1.0.20240702.1

What app or flow are you having the issue with?

Start Business Approval Process

Steps To Reproduce

  1. Create a workflow process wf1
  2. Create a Variable parameter1 of type number
  3. Publish the workflow
  4. In the powerautomate, add a start a business approval process action . Set process to WF1 and set the value of parameter1 to 12.56 (or some decimal number)
  5. run the powerautomate

Anything else?

Start a business approval process error message OpenApiOperationParameterTypeConversionFailed The 'inputs.parameters' of workflow operation 'Start_business_approval_process' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'query/OrderAmount' is required to be of type 'Integer/int32'. Converting the integer value '6705.96' to type 'Integer/int32' will result in a loss of precision. Use the 'float()' expression if this is intended.