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
Memorable Member
Memorable Member

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,727)