Skip to main content
New Participant
Jul 31, 2025 4:18 PM UTC
Question

Prevent events from removing after deleted record

Hi!

Is it possible to prevent removal of Record Events related to removed record?

I want to have an event "XX record removed" but it seems impossible as it removes all events related to given record.


Thanks,

Damian

3 replies

shubhama926776
Brainy
Aug 1, 2025 6:08 PM UTC

No, you cannot preserve Record Events when hard deleting a record - they're automatically removed. Use soft delete instead: add an isDeleted field, write the deletion event, set isDeleted = true, and use a sync filter to hide the record. This keeps the audit trail intact.

https://docs.appian.com/suite/help/25.2/Delete_Records_Smart_Service.html

शुभम्
stefanhelzle0001
Brainy
Aug 1, 2025 6:54 PM UTC

Where would you display that event record? What is the underlying use case here?

harshas2775
Brainy
Aug 2, 2025 4:32 AM UTC

Since record event relate to record using the primary key of the parent record, you shouldn’t remove the parent record. Its better to set status of record to “Removed” instead of removing the record from table so that the record event can be set as per requirements and has links to arent record.

alternatively instead of status as Deleted  or Removed, you can configure a separate column to store 1/0 based on whether record is removed or not! 

Happy to help. Even happier to optimize.