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 record from Sha...
Power Apps
Answered

Remove record from SharePoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have this list of courses, which is two columns. The first is one that have all courses,  the second the courses which one finished. But I want to make it possible for the user to delete the course in the second column if they by a mistake push the wrong one. I just can't seem to get it right. 

 

second.PNGfirst.PNG

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Separate the remove from the formula.

    You can insert a check box for the delete when checked and on the OnCheck, put:

    ForAll( RenameColumns(Filter(GalleryName.AllItems, CheckboxName.Value = true), "IDColumn", "ID1"),
    Remove(Datasource,
    LookUp(Datasource,
    IDColumn = ID1)) )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24  Can you help a bit more, I have difficulties seeing what I should put into the different elements in the code. 

    And what do you mean by separating the remove from the formula?

  • eka24 Profile Picture
    20,925 on at

    My point are:

    1. On the formula you showed, clear or delete the Last formula which is Remove....

     

    2. Insert a checkbox into the Gallery on addition to your button in the Gallery.

     

    3. Select the checkbox you have inserted and on the OnCheck property, put the formula I stated in my reply. This is to replace your delete formula in your original formula.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24  I don't think I get it.. :S  I deleted the remove in the other onethird.PNG

  • eka24 Profile Picture
    20,925 on at

    Please relook at the formula again. I can see Rename Column in your formula as I stated.

     

    Also do you have a column called ID. If not replace ID with your unique Column

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24  Thank you for helping, but I have difficulties seeing what I am doing. 

     

    fourth.PNG

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Solved it by using this code ClearCollect(CourseUpdateDone, LookUp(Users, Title = Office365Users.MyProfileV2().id).Done);Remove(CourseUpdateDone,ThisItem);Patch(Users, LookUp(Users, Title = Office365Users.MyProfileV2().id), {Done: CourseUpdateDone});

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

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard