cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chris_young
Helper III
Helper III

Patch Issues

Hello all, 

 

I'm having an issue with a Patch statement. I used to only have one user and it worked perfectly, but not I have two and it's giving me some issues:

 

If something is already confirmed it automatically switches it back to the last workflow status. With one user it was working, but when I added a second it is running through the first one, noticing it's not them, even though and flipping the status even though they are EMAIL2. I have tried adding an OR statement or || and it's doing the same thing. I know this is a formatting issue but for the love of my I can't figure it out. 

 

If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL1",
Patch(BIS_EMPLOYEE, {ID:Gallery7_9.Selected.ID}, {Request_x0020_Status:{Value:"3 - Pending"}}),
If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL2",
Patch(BIS_EMPLOYEE, {ID:Gallery7_9.Selected.ID}, {Request_x0020_Status:{Value:"3 - Pending"}})));

1 ACCEPTED SOLUTION

Accepted Solutions
chris_young
Helper III
Helper III

Got it
If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL1",
If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL2",
Patch(BIS_EMPLOYEE, {ID:Gallery7_9.Selected.ID}, {Request_x0020_Status:{Value:"3 - Pending"}})));

View solution in original post

1 REPLY 1
chris_young
Helper III
Helper III

Got it
If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL1",
If(DataCardValue47.Selected.Value = "4 - Confirmed" && User().Email <> "EMAIL2",
Patch(BIS_EMPLOYEE, {ID:Gallery7_9.Selected.ID}, {Request_x0020_Status:{Value:"3 - Pending"}})));

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,258)