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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (5,760)