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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / If/And not evaluating ...
Power Apps
Answered

If/And not evaluating multiple person column (patch)

(0) ShareShare
ReportReport
Posted on by 134

Hi there, I have an if function that is to move items through a workflow path. there is a spot that it needs to evaluate if a multiple person column has an assignment or not and for the life of me... all other patching functions are working perfect except the ones in red.

It passes everything as "Pending Specialty Authorization", even when the table is blank. i have tried !/IsBlank, !/IsEmpty, and i think i tried coalesce but i may have done it wrong. is there a way to pass a multiple person column as a blank from a variable? I have tried the && in the evaluation and the And like it currently is. nothing seems to pass as the multiple person column is blank. I checked the variable itself and its passing it as "table" and when i look at the table its of course... blank. I've attached photos of when there is and isn't a name in the variable.

BHaapi_0-1714419576029.png

When it contains a person:

BHaapi_1-1714419605404.png

When nobody is needed:

BHaapi_2-1714419622101.png

 

 

 

If(
    varApprovalLevel = "L1",
    Patch(
        'Purchase Approvals',
        varFormID,
        {
            'Approval Path Notes': "L1 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
            'Approval Status': "Pending L2 Authorization",
            'Authorization L2': L2Auth_1.Selected,
            'Funding Source': DataCardValue9.Selected,
            'Estimated Cost': Value(DataCardValue8.Value),
            Urgent: DataCardValue2.Checked
        }
    ),
    varApprovalLevel = "Spec",
    Patch(
        'Purchase Approvals',
        varFormID,
        {
            'Approval Path Notes': "Specialty Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
            'Approval Status': "Pending Final Authorization",
            'Funding Source': DataCardValue9.Selected,
            'Estimated Cost': Value(DataCardValue8.Value),
            Urgent: DataCardValue2.Checked
        }
    ),
    varApprovalLevel = "Fin",
    Patch(
        'Purchase Approvals',
        varFormID,
        {
            'Approval Path Notes': "Final Approval by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
            'Approval Status': "Approved",
            'Funding Source': DataCardValue9.Selected,
            'Estimated Cost': Value(DataCardValue8.Value),
            Urgent: DataCardValue2.Checked
        }
    ),
    And(
        varApprovalLevel = "L2",
        IsEmpty(varFormID.SpecialtyAuthorization)
    ),
    Patch(
        'Purchase Approvals',
        varFormID,
        {
            'Approval Path Notes': "L2 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
            'Approval Status': "Pending Final Authorization",
            'Funding Source': DataCardValue9.Selected,
            'Estimated Cost': Value(DataCardValue8.Value),
            Urgent: DataCardValue2.Checked
        }
    ),
    And(varApprovalLevel = "L2" , !IsEmpty(varFormID.SpecialtyAuthorization)),
    Patch(
        'Purchase Approvals',
        varFormID,
        {
            'Approval Path Notes': "L2 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
            'Approval Status': "Pending Specialty Authorization",
            'Funding Source': DataCardValue9.Selected,
            'Estimated Cost': Value(DataCardValue8.Value),
            Urgent: DataCardValue2.Checked
        }
    )
);
 
 
Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,539 Super User 2026 Season 1 on at

    Hi @BHaapi ,

     

    When checking the formula everything seems correct.

     

    The only thing I noticed is that the two Patch functions you marked are identical, so regardless of the value of varFormID.SpecialtyAuthorization, the result will be the same.

  • BHaapi Profile Picture
    134 on at

    hi there, the difference is that the approval status column needs to patch differently to each. one sends "pending final approval" and the other sends "pending specialty approval". maybe the similarities in the patch is in fact the problem?

  • Verified answer
    BCBuizer Profile Picture
    22,539 Super User 2026 Season 1 on at

    Hi @BHaapi ,

     

    Got it.

     

    Try adding an additional condition to the second last scenario:

     

    If(
     varApprovalLevel = "L1",
     Patch(
     'Purchase Approvals',
     varFormID,
     {
     'Approval Path Notes': "L1 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
     'Approval Status': "Pending L2 Authorization",
     'Authorization L2': L2Auth_1.Selected,
     'Funding Source': DataCardValue9.Selected,
     'Estimated Cost': Value(DataCardValue8.Value),
     Urgent: DataCardValue2.Checked
     }
     ),
     varApprovalLevel = "Spec",
     Patch(
     'Purchase Approvals',
     varFormID,
     {
     'Approval Path Notes': "Specialty Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
     'Approval Status': "Pending Final Authorization",
     'Funding Source': DataCardValue9.Selected,
     'Estimated Cost': Value(DataCardValue8.Value),
     Urgent: DataCardValue2.Checked
     }
     ),
     varApprovalLevel = "Fin",
     Patch(
     'Purchase Approvals',
     varFormID,
     {
     'Approval Path Notes': "Final Approval by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
     'Approval Status': "Approved",
     'Funding Source': DataCardValue9.Selected,
     'Estimated Cost': Value(DataCardValue8.Value),
     Urgent: DataCardValue2.Checked
     }
     ),
     And(varApprovalLevel = "L2", Or(IsBlank(varFormID.SpecialtyAuthorization), IsEmpty(varFormID.SpecialtyAuthorization))),
     Patch(
     'Purchase Approvals',
     varFormID,
     {
     'Approval Path Notes': "L2 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
     'Approval Status': "Pending Final Authorization",
     'Funding Source': DataCardValue9.Selected,
     'Estimated Cost': Value(DataCardValue8.Value),
     Urgent: DataCardValue2.Checked
     }
     ),
     And(varApprovalLevel = "L2", !IsEmpty(varFormID.SpecialtyAuthorization)),
     Patch(
     'Purchase Approvals',
     varFormID,
     {
     'Approval Path Notes': "L2 Approved by " & varUserInfo.FullName & Char(10) & Now() & Char(10) & DataCardValue17_1.Value & Char(10) & DataCardValue17.Value & Char(10),
     'Approval Status': "Pending Specialty Authorization",
     'Funding Source': DataCardValue9.Selected,
     'Estimated Cost': Value(DataCardValue8.Value),
     Urgent: DataCardValue2.Checked
     }
     )
    );
  • BHaapi Profile Picture
    134 on at

    Thanks! I had to apply this to both parts to make it work, and it can't trigger a flow, so i did that elsewhere.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard