cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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!

1 REPLY 1
soylaunica
Level: Powered On

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

Found the issue! Crisis averted!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Users Online
Currently online: 118 members 4,538 guests
Please welcome our newest community members: