web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Remove function -

(0) ShareShare
ReportReport
Posted on by 208

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

 

 

 

 

 

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    It expects an ID

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

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @claudia 

     

    Please use below formula if it helps your code. 

     

    Removeif('Contracts / Agreements to be Approved', ID =galOverview.Selected.ID)

     

    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.

  • claudia Profile Picture
    208 on at

    Thank you for your answer.

     

    I receive the following error: Incompatible types for comparison. These types cannot be compared: Number, Control

    We cant evaluate your formula because the values beign compared in the formula aren't the same type)

  • claudia Profile Picture
    208 on at

    Thank you for your answer.

     

    I receive the following error: Cannot use a non-record value in this context "galOverview.Selected.ID".

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @claudia ,

     

    Please try below code. 

    Removeif('Contracts / Agreements to be Approved', ID=Value(galOverview.Selected.ID))
  • claudia Profile Picture
    208 on at

     

    I still receive an error. Please see below.

     

    claudia_0-1631009047630.png

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @claudia ,

     

    One more try 

     

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

    Also could you please confirm the datasource you added in Gallery control is same as the dats source you are trying to remove from ? 

     

     

    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.

     

  • claudia Profile Picture
    208 on at

    The data source is the same

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @claudia ,

     

    Did the previous mentioned code work in your case ? 

  • claudia Profile Picture
    208 on at

    Unfortunately not ☹️

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard