cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
soylaunica
Level: Powered On

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
soylaunica
Level: Powered On

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

Found the issue! Crisis averted!

View solution in original post

1 REPLY 1
soylaunica
Level: Powered On

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

Found the issue! Crisis averted!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,694)