cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
claudia
Helper IV
Helper IV

Remove function -

Hello everybody,

 

 

1. I have gallery which have as a data source a SharePoint library.

2. I have added a Delete button, outside of the gallery

On select from the Delete button, I have used the following formula:  

Remove('Contracts / Agreements to be Approved', galOverview.Selected)

 

Contracts / Agreements to be Approved = data source - SharePoint library

galOverview = Gallery

 

Unfortunately  I receive the following errors:

Incompatible ID column in the data source you're updating expects a 'Number' type and you're using a 'Control' type.

The function "Remove" has some invalid arguments.

 

Please can anybody, help me with this issue?

 

Thank you, for your kind support,

Claudia

 

 

 

 

 

19 REPLIES 19

Unfortunately not ☹️

Hi @claudia ,

 

Could you please print the value of Selected gallery item in a Label ? Let me know the result. 

 

Label   Text:galOverview.Selected.ID

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

claudia_0-1631013280379.png

 

Hi @claudia ,

 

The delete icon inside the gallery is where you want to delete the value ? If yes please try below formula. 

 

Remove('Contracts / Agreements to be Approved',Thisitem)

 

 

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.

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

No. I have a pop-up message that allows the user to cancel the delete action.

rampprakash
Power Participant
Power Participant

Hi @claudia,

 

Try this.

 

On Select of Gallery Set(selectedGalleryItem,ThisItem.ID);

 

Then in OnClick of a Button 

Remove('Data Source',selectedGalleryItem); Set(selectedGalleryItem,Blank());

 

Please mark as Answer if it is helpful and provide Kudos

Blog : https://microsoftcrmtechie.blogspot.com
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

Hi @claudia ,

 

Ok, Please try the below. 

On delete icon selection:  Set(varSelected,Thisitem)

On Popup button selection:   Remove(DataSourceName,varSelected)

This should work in your case. 

 

 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.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

I still receive an error

 

claudia_1-1631014289972.png

 

claudia_2-1631014334625.png

 

 

 

Now it is working 😀

 

Thank you very much!!!!!!

Thank you for taking time to help me!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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