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
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 (1,825)