web
Youโ€™re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : LXy2mJVEauTSGUf/RiDe/p
Power Apps - Building Power Apps
Answered

PowerApps cannot delete record from detail form

Like (0) ShareShare
ReportReport
Posted on 4 Aug 2022 04:21:19 by 64

Hi I'm a newbie and I have a problem where I cannot delete record from my DetailForm. Refer to screenshot below:

 

This is my code for Detail Form under "Item" property:

LookUp('DIS Fund',Identifier=BrowseGallery1.Selected.Identifier)

Nbz78_1-1659586136065.png

 

This is my code to delete this record in Detail Form under "OnSelect" property: (the problem is on this part where I cannot delete the record. I believe it is related to the previous screenshot where I used lookup but I'm not sure how to do this)

Remove([@'DIS Fund'], BrowseGallery1.Selected);
If (IsEmpty(Errors([@'DIS Fund'], BrowseGallery1.Selected)), Back())

Nbz78_2-1659586227262.png

 

Appreciate your help!๐Ÿ™ Thank you so much

  • goel_gagandeep Profile Picture
    141 on 04 Aug 2022 at 09:07:53
    Re: PowerApps cannot delete record from detail form

    Welldone.

  • Nbz78 Profile Picture
    64 on 04 Aug 2022 at 07:11:39
    Re: PowerApps cannot delete record from detail form

    Thanks for your help ๐Ÿ™‚ 

  • Verified answer
    Nbz78 Profile Picture
    64 on 04 Aug 2022 at 07:10:25
    Re: PowerApps cannot delete record from detail form

    Thank you, I'm using the ID and it works! ๐Ÿ™‚ 

  • Verified answer
    goel_gagandeep Profile Picture
    141 on 04 Aug 2022 at 05:42:48
    Re: PowerApps cannot delete record from detail form

    hi @Nbz78 ,
    Try this 
    RemoveIf([@'DIS Fund', Name= BrowseGallery1.Selected.Name);
    here Name field is your column name which you are using in your Form. 
    But as per my opinion you should take a ID column in your Form so you can delete your record by the Id of the user. then your code for deletion will look like this:
    RemoveIf([@'DIS Fund', Id= BrowseGallery1.Selected.Id);

    I hope It will help you



  • Akash17 Profile Picture
    549 Super User 2024 Season 1 on 04 Aug 2022 at 05:10:43
    Re: PowerApps cannot delete record from detail form

    Hi @Nbz78 

    Code used on delete icon looks fine

    If your gallery is detail screen related then try replacing Lookup with only data source name on that gallery

    'DIS Fund' on data source property or [@'DIS Fund']

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful forโ€ฆ

Paul Stork โ€“ Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Communityโ€ฆ

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete