cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patricia_r
Helper II
Helper II

How can i patch a SharePoint list blank based on a condition?

Hello,

 

Hope i can get help with this. I have a SP list call employees that i am using, then i am using a label to show the age. When i want to patch employee email and Age i would like for Age to be as blank/Null how can i do this base on a condition. 

 

On the Text property i have a lookup formula 

LookUp(Employees, EmployeeEmail=Dropdown2.Selected.EmployeeEmail,Age)

 

What can i put on the Submit Button?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @patricia_r ,

Do you want to update items that EmployeeEmail=Dropdown2.Selected.EmployeeEmail with blank age?

If so, I agree with @TJO  to use UpdateIf() function, which could update all the items that meet the requirement.

Firstly, please change this setting in your app:
File->settings->advanced settings->turn this toggle on

981.PNG

 

Then use formula like this to update:

UpdateIf(datasourcename,EmployeeEmail=Dropdown2.Selected.EmployeeEmail,{Age:Blank()})

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
TJO
Resolver II
Resolver II

@patricia_r How about you try with an UpdateIf() formula?

v-yutliu-msft
Community Support
Community Support

Hi @patricia_r ,

Do you want to update items that EmployeeEmail=Dropdown2.Selected.EmployeeEmail with blank age?

If so, I agree with @TJO  to use UpdateIf() function, which could update all the items that meet the requirement.

Firstly, please change this setting in your app:
File->settings->advanced settings->turn this toggle on

981.PNG

 

Then use formula like this to update:

UpdateIf(datasourcename,EmployeeEmail=Dropdown2.Selected.EmployeeEmail,{Age:Blank()})

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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
Top Kudoed Authors
Users online (2,362)