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 / Updating a field befor...
Power Apps
Unanswered

Updating a field before deletion using collections

(0) ShareShare
ReportReport
Posted on by

Apologies, I'm fairly new to powerapps and I'm having a little trouble.

 

I have a SQL Server Temporal table which is connected to my app.  I am using collections for a responsive grid and within there I have a delete function where rows are moved to a delete collection before all being patched to said SQL table.  All of that is working fine, however what I am trying to do before an item is deleted from the table, update that item with the last user and then delete so in my temporal table it will effectively show me who deleted the row.  I've tried updating collections etc and it does not update as I believe it is just using the primary key to find the records to delete and taking no notice of the data in the collections.

 

On my final patch I think I need to lookup the IDs in deletion collection and update the field in the main collection then patch before I delete but I just cannot get it to work.

 

Any ideas would be much appreciated.

Categories:

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard