cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Flow IF error, but I have 3 arguments?

Ok Guys, I'm getting the below error. Basically I am in a Do Until where there are levels of approval. With each approval there is a duplicate check to confirm if the approver had approved at an earlier level. If they have, then copy the data from those columns into the current field. The following expressions are a few that I'm getting the below error for, funny thing is this worked yesterday! What am I doing?! I can't do a nested if, because I max out and I can't do a switch, it appears, because I can't use dynamic content in the equals field? HELP! Tanks in advanced ^_^ Smiley Frustrated

 

  1. if(and(equals(variables('CurApprovalLevel'),1),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['OData__x0031_stStepApproval'],body('Get_item')?['OData__x004d_LA1'])
  2. if(and(equals(variables('CurApprovalLevel'),1),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['StartDate'],body('Get_item')?['MLA1_StartDate'])
  3. if(and(equals(variables('CurApprovalLevel'),1),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['Level0_EndDate'],body('Get_item')?['MLA1_EndDate'])
  4. if(and(equals(variables('CurApprovalLevel'),1),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['Level0_Response'],body('Get_item')?['MLA1_Response'])
  5. if(and(equals(variables('CurApprovalLevel'),2),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['OData__x0031_stStepApproval'],if(and(equals(variables('CurApprovalLevel'),2),equals(variables('Approver'),body('Get_item')?['OData__x004d_LA1'])),body('Get_item')?['OData__x004d_LA1'],body('Get_item')?['OData__x004d_LA2']))
  6. if(and(equals(variables('CurApprovalLevel'),2),equals(variables('Approver'),body('Get_item')?['OData__x0031_stStepApproval'])),body('Get_item')?['StartDate'],if(and(equals(variables('CurApprovalLevel'),2),equals(variables('Approver'),body('Get_item')?['OData__x004d_LA1'])),body('Get_item')?['MLA1_StartDate'],body('Get_item')?['MLA2_StartDate']))

 

iferror.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: Flow IF error, but I have 3 arguments?

Found the issue! Crisis averted!

View solution in original post

1 REPLY 1
Highlighted
Helper II
Helper II

Re: Flow IF error, but I have 3 arguments?

Found the issue! Crisis averted!

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,182)