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

(0) ShareShare
ReportReport
Posted on by 111

Hi,

I need to remove a item from SP list -  If gallery text label which can used to count something and  I have  delete button outside the Gallery. How can I do it.

Condition label.Text  = 0 only  

 

Thanks.

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    Hi @ShaikSayyad ,

    Something along this line should do the job

    ForAll(
     RenameColumns(
     Filter(
     YourGalleryName.AllItems,
     Value(ConditionLabel.Text)=0
     ),
     "ID",
     "ID1"
     ),
     RemoveIf(
     YourSPListName,
     ID=ID1
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ShaikSayyad Profile Picture
    111 on at

    RD.png

     

    Please refer above screen

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @ShaikSayyad ,

    This was free-typed syntax guidance - did you notice the missing comma (now fixed)?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ShaikSayyad Profile Picture
    111 on at

    Thank you,

    but I need to remove gallery is selected, like I have delete btn in View form (Gallery.Selected)

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @ShaikSayyad ,

    I am now even more unclear on what you want.

    If you simply want to remove the selected item in the gallery from outside the gallery

    RemoveIf(
     YourSPListName,
     ID=YourGallerytName.Selected.ID
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • ShaikSayyad Profile Picture
    111 on at

    I want to delete item from SP list_1, but Gallery of SP list_1 has a count label from another SP list_2. I was showing gallery and view form of SP List_1 in same screen. 

    Here I need to delete item from SP List_1 which is presented in view form (If count label has 0 from selected template ) 

  • WarrenBelz Profile Picture
    156,774 Most Valuable Professional on at

    @ShaikSayyad ,

    That was not not what you posted and I am even less clear now how the lists and their items relate to each other.

    I will be offline shortly due to time zone - I welcome anyone else who may be able to decipher what you are wanting. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 225

#3
M Bilal Khan Profile Picture

M Bilal Khan 192

Last 30 days Overall leaderboard