web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / muliplying 1 to variab...
Power Automate
Answered

muliplying 1 to variable itself

(0) ShareShare
ReportReport
Posted on 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

Categories:
I have the same question (0)
  • Verified answer
    Sundeep_Malik Profile Picture
    6,484 on at

    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.

  • jwokch Profile Picture
    7 on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 315 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 273 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 117 Super User 2026 Season 1

Last 30 days Overall leaderboard