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

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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,176)