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 / Trouble with Confirm D...
Power Apps
Answered

Trouble with Confirm Delete Pop-Up: ThisItem not available

(0) ShareShare
ReportReport
Posted on by

@mdevaney I hope you are well. I tried posing this question on a previous post I had marked as a solution, but didn't hear back so I thought I would try posting a new question in case it isn't possible to ask follow-up questions on a "closed" post. I'm still learning my way around the forums. Apologies if you are receiving his a second time.

 

I have a follow-up question to the previous item you helped me with which was "how do I update a SharePoint List after deleting an item from a Collection". The formula you provided worked great when applied to the OnSelect property of the trash can icon in the Gallery, but it later occurred to me that I should include a pop-up dialog box asking the user to confirm that they wish to delete the item before actually deleting it. If they click the "Yes, delete" button I want the item to be removed from the SharePoint list (Pipeline) and Collection (colPipeline).

 

For some reason, the formula that worked for the trash can icon in the Gallery is not working on the "Yes, delete" button in the pop-up dialog box. I have a suspicion that I am doing something wrong with the variable, but I've been trying to get it going since Mon, July 13 with no success so I thought I should ask if you could help me out. Intellisense doesn't give me the option of selecting "ThisItem". Since there are multiple formulas with the introduction of a pop-up dialog, I thought it would be easiest to attach screenshots in the pdf below (all data shown is fictitious).

 

I have everything working except for the delete feature so I have highlighted anything that pertains to it in yellow. Would you mind taking a look and letting me know what I am missing? No need to reply over the weekend of course unless that is easier for you. The original formula you provided to me is included in the attachment. I have watched multiple videos on pop-up dialog boxes. While I was able to glean valuable formatting tips from each, none of them matched my particular deletion scenario unfortunately. Thank you in advance! Teresa

 

 

Categories:
I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    if that doesn't work you could set a variable like Set(var_deleterecord, Gallery1.selected.ID)

    and then when clicking yes on the pop-up do something like Remove(datasource,Filter( datasource, ID=var_deleterecord ) )

  • tagustin2020 Profile Picture
    on at

    Thank you for offering this suggestion, on a Saturday no less! The item is successfully deleted from the SharePoint List, but not the Gallery which is based on a Collection of the SharePoint List. I've tried adding Remove(colPipeline,ThisItem) to the formula, but "ThisItem" doesn't come up as an option in Intellisense, only "Thistle". If I try to force it, I get an error. Any ideas on what I might try next? 

  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    What about something like

     

    Remove(ColPipeline,LookUp(ColPipeline,ID=Gallery1.Selected.ID))

    ?  

  • tagustin2020 Profile Picture
    on at

    That worked! Thanks so much! I will mark it as a solution. Enjoy the rest of your weekend 🙂

  • KEarley Profile Picture
    276 on at

    I think the BIGGER question here is what the hell is "Thistle"?  I get it too!  If it's just junk left in there by Microsoft, then shame on you Microsoft!  I know it sounds like I am ranting, but I am not,  I really would like to know what "Thistle" is and if it's nothing, what is it doing in my Slider control  under most attributes (in the intellisense)?

    KEarley_1-1648083052640.png

     

     

  • balambuc Profile Picture
    2 on at

    Thistle is a color #D8BFD8. It took me quite some time as well not to confuse the two

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 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard