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
vikas  malikvikas malik 

Does anyone can confirm if it is possible to create a trigger for "__History" objects

I have to create a trigger that creates a task after an e-mail is sent from Activity History in a custom object. I am trying to use MyCustomObject__History but I'm getting the following error: SObject type does not allow triggers: MyCustomObject__History
Best Answer chosen by vikas malik
Gaurav NirwalGaurav Nirwal

No you can't, the x__history objects are the field history tracking objects. But you can write triggers on the Activity object, which I think you're looking fo