cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alicekings
Helper III
Helper III

Remove data in Column by Press Button

I want to create button that clear Data in Column I make gallery That have 2 Column is Flavor and Quantity and I want to make a button that went i press It delete data in that column example i click button on ID2 it Delete "vanilla" and click on ID3 it Delete "Strawberry" like picture below . I try    " Patch (MySharepointname , {ID: Value(ThisItem.ID)},{Flavor:Label13.text}); *Label13 has no text  " but it won't work any idea to do this  

 
 

image.pngimage.png

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Alicekings ,

Sorry, I misunderstood your requirements - try

UpdateIf(
   MySharepointname, 
   ID = Value(ThisItem.ID),
   {Flavor:""}
) 

I am assuming that ID = Value(ThisItem.ID) is valid from where you are running it

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

 @Alicekings ,

You need Remove/RemoveIf functionality.

Please have a read - if you get stuck, happy to lend a hand.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

I try that too but All my Column gone too I want only data in column "Flavor" remove    // Remove(
MyDataSource,
{ID: Value(ThisItem.ID)},Flavor);

Hi @Alicekings ,

Sorry, I misunderstood your requirements - try

UpdateIf(
   MySharepointname, 
   ID = Value(ThisItem.ID),
   {Flavor:""}
) 

I am assuming that ID = Value(ThisItem.ID) is valid from where you are running it

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Thank you that work perfectly . but may i ask what if i want to remove the column that type is person and group not a text . any suggestion to help me out

I am not completely familiar with person columns as I do not use them,however have a look the collection View> Collections. If you can see a text value, the same should work.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (4,448)