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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove function errors...
Power Apps
Answered

Remove function errors for OnSelect

(0) ShareShare
ReportReport
Posted on by 91

I have a SharePoint List ('Programs and Projects') feeding my Power App form. I want to Remove the selected SharePoint Record when the Trash Icon is selected. So in OnSelect I have the following formula:   

                                   OnSelect = Remove('Programs and Projects', ThisItem)

 

This basic formula should work and I have seen it demonstrated in multiple videos but I get the following error. 

      "Name isn't valid, the identifier is not recognized."

MerPetti_0-1648077774445.png

Why does my Power App not accept these values and/or how do I identify the offending (Name) data attribute?

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

    @Mer-Petti 

    Try

    Remove('Programs and Projects', Lookup('Programs and Projects', ID=ThisItem.ID))

  • Mer-Petti Profile Picture
    91 on at

    I get the same error: 

    MerPetti_0-1648134301986.png

     

  • AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    What is the Item for the form. For a test try put that in the bit where it says thisitem e.g.

     

    if your forms item is gallery1.selected put in Remove('Programs and Projects', gallery1.selected)

    if your forms item is a lookup put in the same place. let us know how that goes. 

  • Mer-Petti Profile Picture
    91 on at

    MerPetti_0-1648142395301.png

    Tried SharePointForm1.Selected and FormScreen1.Selected. Still getting the same error. 😕

     

  • Verified answer
    Mer-Petti Profile Picture
    91 on at

    So I continued to play around with it and THIS is what worked.

             Remove('Programs and Projects',SharePointIntegration.Selected)

     

    It tested out twice and I was able to recover the file from Recycling. 

    MerPetti_0-1648144350618.png

     

    So the solution is to pull in the "SharePointIntegration" terminology with the Selected attribute.

    Thank you,

    - Merry

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard