function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cchangcchang 

Trigger on the custom object does not fire after apex batch job insert on custom object

The purpose is to trigger on the SFDC "useraccountteammember" object. since this object is not exposed to write a trigger on, what I did is to write an apex batch job and copy useraccountteammember object to the custom object. and write a trigger on the custom object.

so Whenever the useraccountteammember changes, the custom object records change. (this is verfiied working fine). However, the changed record on the custom object does not fire the trigger on the custom object. (there is no trace on the system log at all that the trigger is fired)

 

Does anyone know if anything can possibly go wrong?  Thanks for your reply. 

grigri9grigri9

Can you check to make sure that the trigger is active and runs on insert/update?

cchangcchang

The trigger is valid and active. 

I am wondering if the trigger should be fired or there is any feature that I need to request to turn on. Thanks.

grigri9grigri9

Does the trigger run if you edit those objects through the standard ui?