cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shizu
Regular Visitor

mul(triggerOutputs()?['body/Amt'],-0.003)

Amt is a  value, e.x 3000$, 3000*-0.003=-9, but the expression result is 9.

 

it looks like the mul function can't read "minus" parameter. isn't it?

 

if so, how can i multiply a minus rate.

4 REPLIES 4
DamoBird365
Super User
Super User

Hi @Shizu 

 

This works for me 

mul(6,-0.3)
 
Could it be that your triggerOutputs()?['body/Amt'] is a string and needs converted to float or int?
 
float(triggerOutputs()?['body/Amt'])
 
I also tried:
DamoBird365_0-1627626613291.pngDamoBird365_1-1627626640099.png

 

 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien


P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉

no,it didn't work.

You’ll have to share a bit more info. A screenshot of the source and flow history.

 

Damien

I think it is not the”mul(), but the condition. 

this flow has a condition of the value of a field “category “, if the the value is sell, commission is equal to sales *-0.003, or sales *0.003.

 

the category is a field , type of “option “. After testing, the condition will not be true. That is the reason. I think I typed a wrong grammar of reference for the condition.

I am using my phone, can’t screenshot for now. Maybe later 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,199)