Apex Trigger on TopicAssignment delete is not fired when Topic is deleted
Last updated 2015-09-03 ·Reference W-2358279 ·Reported By 1 users
When a Topic is deleted, it is added to queue to be deleted later. When the Automated Process picks up the deletion, it deletes all TopicAssignments and then it deletes the Topic.
Delete triggers on TopicAssignment are not executed. Also, there is no way in Delete triggers for Topic to figure out which TopicAssignments were deleted
What are Topics?
Create trigger on TopicAssignments before delete or after delete
1) Create a topic
2) Assign this topic to a record
3) Delete the topic
4) TopicAssignments and Topic are deleted
5) Delete trigger on topic is fired
6) Delete trigger on TopicAssignment is not fired
Depending on what the purpose of the Trigger, the Trigger code could be moved to Topic Delete but that will not be relevant for all cases. In some cases, there is no workaround
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.