Power Automate Mul Function Explained

Power Automate Mul Function

The Power Automate Mul function lets you mutlipy two numbers to calculate the sum.

In this article, I’ll introduce you to the mul function and will provide a step-by-step guide on how to use the function in a Microsoft flow.

Power Automate Mul Function

power automate mul expression example 1

Returns the result of multiplying two numbers together.

Syntax

mul(<multiplicand1>, <multiplicand2>)

Input parameters

  • multiplicand1 (mandatory): The number that will be multiplied by multiplicand2.
  • multiplicand2 (mandatory): The number that will multiply multiplicand1.

Return value

  • Returns the result of the first number multiplied by the second number.

Power Automate Mul Expressions Example

mul(4,3)
=> 3

// float example
mul(4.7,3.2)
=> 15.040000000000001

// with variable
mul(variables(‘myNumber’), 3)

How To Use The Power Automate Mul Function

Follow the steps to use the Power Automate Mul function in a flow.

  1. Create a new flow with trigger ‘Manually trigger a flow’

    Power Automate Mul Function new flow

    New flow

  2. Add a new step by clicking on ‘+ New step’

    Power Automate Mul Function new step

    Add a new step

  3. Search for ‘initialize’ and click on ‘Initialize variable’

    Power Automate Mul Function initialize variable

    Add Initialize variable action

  4. Setup Initialize variable: 1) Provide a name, 2) select type Integer, 3) Set value to ‘4’

    Power Automate Mul Function initialize variable setup

    Setup variable

  5. Add a compose step by searching for ‘compose’ and clicking on ‘Compose’

    Power Automate Mul Function add compose

    Add Compose action

  6. Setup compose action: 1) click into Inputs (popup appears), 2) click on ‘Expressions’, 3) set expression to ‘mul(variables(‘myNumber’), 3)’ 4) click on ‘OK’

    Power Automate Mul

    Setup mul expression in Power Automate

  7. Save and do a test run

    Power Automate Mul Function test run result

    Result test run – Power Automate Mul function example

Leave a Comment

Your email address will not be published. Required fields are marked *