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 / PowerApps restore data...
Power Apps
Unanswered

PowerApps restore data permanent.

(0) ShareShare
ReportReport
Posted on by 5

 Hello all,

Please take reference from attached image.

 In my power app, I have two data tables now I want to implement a function whenever I deleted any data on Datatable1 it should permanent move to the data Table 2

Please help me with this problem

pa 9.PNG
Categories:
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @Nasreen 

     

    Use the Collect and Remove functions to remove a record from one data source and add it to another.

    Collect(DataSource2, ThisItem);
    Remove(DataSource1, ThisItem);

    I would also check if you can use a single data source, and add a column that indicates whether the record is deleted or not. For example, you can add a Boolean column called IsDeleted and set it to false by default.

    Then, instead of deleting the record from the data source, you can update the IsDeleted column to true.

    You can set the OnSelect property of the button to something like this:

    Patch(DataSource, ThisItem, {IsDeleted: true})

    This will mark the current item as deleted, but not remove it from the data source.

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard