Skip to main content
Community site session details

Community site session details

Session Id : CBFy4UMXMg6k8mF8kyXdCX
Power Automate - Using Flows
Answered

muliplying 1 to variable itself

Like (0) ShareShare
ReportReport
Posted on 4 Oct 2022 00:57:54 by 7

Hi, I'm creating an approval workflow of all approver's agreement condition. e.g,
All approvers approved -> pass
Eiter one of approver rejected -> fail
I would like to achieve this condition check by multiplying 1 to response variable (initial value 1) if approved, and multiply 0 if rejected.
After review step finish, target variable will remain 1 if all approved. It will become 0 if anyone rejected.


Please help me to proceed this simple multiply calculation in set variable action.
I tried
mul(variables('responseCollection'),1)
and receiving error below;

Flow save failed with code 'WorkflowRunActionInputsInvalidProperty' and message 'The inputs of workflow run action 'multiply_1' of type 'SetVariable' are not valid. Self reference is not supported when updating the value of variable 'responseCollection'.'

powerAutomateApprovalscreen3.png

  • jwokch Profile Picture
    7 on 04 Oct 2022 at 01:50:18
    Re: muliplying 1 to variable itself

    Thanks! Now I found self referencing is not possible.

    This program is providing array value check feature instead. I can easily check my target condition by appending each responses then proceed array value check.

  • Verified answer
    Sundeep_Malik Profile Picture
    6,482 on 04 Oct 2022 at 01:34:53
    Re: muliplying 1 to variable itself

    Hey @jwokch 

    Self referencing is not allowed in power automate, that is you cannot multiply the same variable with itself.

     

    Instead you can just write

    mul(1,1) in the left side and mul(1,0) on the other side.

    Or you can also try this.

    Make 3 variables. Set value of 1 as one, another's 0 and for the result just multiply with the respective variable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow
Loading started
Loading complete