cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pwrappr01
Helper V
Helper V

Is it possible to clear a sharepoint lookup field with patch?

I would like to clear out a SharePoint lookup selection via a Patch. Is this possible? I thought the following would work, but no success:

Patch('SP List',ThisItem,{Answer:Blank()})
1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@pwrappr01 

Try this:

 

Patch('SP List',ThisItem,{Id: -1, Value:Blank()})

 

You could also try using your original column name but Value usually works for me

 

Patch('SP List',ThisItem,{Id: -1, Answer:Blank()})

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
mdevaney
Super User III
Super User III

@pwrappr01 

Try this:

 

Patch('SP List',ThisItem,{Id: -1, Value:Blank()})

 

You could also try using your original column name but Value usually works for me

 

Patch('SP List',ThisItem,{Id: -1, Answer:Blank()})

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

@pwrappr01 

Did my suggestion work for you?  Please let me know.

@mdevaney, thanks a ton. I had to change the code slightly to include the name of the field I was updating, so the result is as follows:

Patch('SP List',ThisItem,{ExampleField:{Id: -1, Value: Blank()}})


Really appreciate it.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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