Hi all,
I have stucked with some elemental calculation requirement that I need to implement into my flow.
My idea is to take data filled by user regarding "savings" (column format is number) and multiply this with looked up column "Recharge" (column format is also number).
I believe this is done through math expression, however I can not get this thing work (I only tried something this naive:
mul('savings','recharge')
And got an error that parameters should be integer or a decimal.
Is there any kind soul that is willing to give me any guidance here?
Solved! Go to Solution.
I ran a quick test with the following expression and had no issues:
mul(body('Get_item')?['savings'],body('Get_item')?['Recharge'])
Your issue is that you need to select the SharePoint columns from Dynamic Properties (or manually enter them in the proper format) rather than just entering the column name inside or single quotes. Flow is interpreting your input as a string rather than a reference to a column - that's why is says that your input must be an integer or decimal.
If this solves your issue, please mark your post as Solved.
Scott
Hi @lamacz,
I have made a test on my side, please refer to screenshot below to create the flow:
The expression in the Compose as below:
mul(triggerBody()?['savings'],int(triggerBody()?['Recharge']?['Value']))
The flow would run successfully as below:
Best regards,
Alice
I ran a quick test with the following expression and had no issues:
mul(body('Get_item')?['savings'],body('Get_item')?['Recharge'])
Your issue is that you need to select the SharePoint columns from Dynamic Properties (or manually enter them in the proper format) rather than just entering the column name inside or single quotes. Flow is interpreting your input as a string rather than a reference to a column - that's why is says that your input must be an integer or decimal.
If this solves your issue, please mark your post as Solved.
Scott
Hi @lamacz,
I have made a test on my side, please refer to screenshot below to create the flow:
The expression in the Compose as below:
mul(triggerBody()?['savings'],int(triggerBody()?['Recharge']?['Value']))
The flow would run successfully as below:
Best regards,
Alice
Thank you so much, both solutions are working like a charm.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
42 | |
37 | |
36 | |
23 |
User | Count |
---|---|
41 | |
31 | |
28 | |
28 | |
28 |