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 / Help with Errors: Remo...
Power Apps
Answered

Help with Errors: Remove items, Set var...., Notify.

(0) ShareShare
ReportReport
Posted on by 442

I am attempting to add the formulas. When I click the 'trash can' icon, a screen pops up with a warning message: 'delete item.' After that, if I click 'Delete,' the item will be removed from the gallery using SharePoint. I am trying to figure out why there is still an error; in my opinion, it should work. Thank you!

Screenshot 2023-12-13 at 6.39.37 PM.png

Categories:
I have the same question (0)
  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    Hi @dylandavis09 

     

    What is the error?

  • dylandavis09 Profile Picture
    442 on at

    @AARON_C , here y'all

     

    Screenshot 2023-12-13 at 7.05.27 PM.png

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @dylandavis09 

     

    Also how did you create your button. You have both controls selected

  • Verified answer
    AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @dylandavis09 

     

    When you click on the trash icon in your gallery to make the pop up message appear, also set a variable.

    Set(varToBeDeleted, ThisItem)

     

    When clicking the delete button, the Remove function would be.

    Remove('Class of 20XX Fundrasing Items', varToBeDeleted);
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @dylandavis09 ,

     

    Please try below steps:

    OnSelect of the trash bin within the Gallery:

    Set(varToBeDeleted, ThisItem.ID)

     

    OnSelect of Delete/TrashBin button:

    RemoveIf('Class of 20XX Fundrasing Items', ID = varToBeDeleted);

     

    Best regards,

  • dylandavis09 Profile Picture
    442 on at

    @v-jefferni , @AARON_C, still error message.

     

    Screenshot 2023-12-14 at 11.23.46 AM.png

  • AARON_C Profile Picture
    2,235 Most Valuable Professional on at

    @dylandavis09 

     

    How have you set up your button? And what property is the code in your controls?

     

    You keep selecting both your text and icon control in your screenshots. 

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @dylandavis09 ,

     

    The issue seems due to the variable varPopupWarningMessageDeleteItem. Do you have it set elsewhere in your App? What's the formula?

     

    Best regards,

  • dylandavis09 Profile Picture
    442 on at

    @v-jefferni, yes, I have set a variable called varPopWarningMessageDeleteItem in my app. It creates a pop-up on the screen with the specified message.

     

    @AARON_C, yes, I am using an icon and a rectangle for the button. I have also added code in the 'OnSelect' property.

  • dylandavis09 Profile Picture
    442 on at

    I found and resolved the issue due to a missing last word.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard