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 / Patching deleted item ...
Power Apps
Unanswered

Patching deleted item into a collection

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I have a collection from which the user can delete items. I am trying to delete the items from the collection first and once the user confirms the changes, to delete items from the data source too.
On delete button I have been trying to patch the selected record by adding a new column: Delete = true. However, I am stuck with the formula of adding a column to the existing collection. Any suggestions would be greatly appreciated.

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    You could add a button and set it's OnSelect property to:

     

    Collect(CollectionName,{Delete:false})

     

    and set it's visible property to:

     

    false

     

     

    You do not need to select the button , and the column will be added automatically.

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-bofeng-msft 
    Thank you for your response. I am not sure if I understand how your suggestion should work. I would like to either delete the item from the collection on select or add a status that it is deleted. Later, once the user presses "Confirm", I would like to delete the items that have been deleted in the collection.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    The solution is used to add a new 'Delete' column to the collection.

    vbofengmsft_0-1664439999277.png

     

     

    Best Regards,

    Bof

     

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard