cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Emptyglasses
Post Partisan
Post Partisan

USING IF IN PATCH FUNCTION

Hi,

 

I need to patch some record into my sharepoint list using if function

I want to patch those values only if my radio button selected value is " Role case "

 

I've set some labels as variable in onselect property of my submit button and I'm using patch function on my on sucess of my form

 

If(Radio1.Selected="Role copy",Patch(SUAD,First(Filter(SUAD,ID=Form1.LastSubmit.ID)),{Module:var01},{Role:var02);
Notify("Your Submission has received",NotificationType.Success);ResetForm(Form1);NewForm(Form1)

 

Emptyglasses_0-1670571421348.png

 

Could anyone please help me on this 

1 ACCEPTED SOLUTION

Accepted Solutions
LaurensM
Memorable Member
Memorable Member

@Emptyglasses could you try the following adjustments to your code:

 

If(Radio1.Selected.Value="Role copy",Patch(SUAD,First(Filter(SUAD,ID=Form1.LastSubmit.ID)),{Module:var01, Role:var02}); ......

View solution in original post

1 REPLY 1
LaurensM
Memorable Member
Memorable Member

@Emptyglasses could you try the following adjustments to your code:

 

If(Radio1.Selected.Value="Role copy",Patch(SUAD,First(Filter(SUAD,ID=Form1.LastSubmit.ID)),{Module:var01, Role:var02}); ......

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,882)