[SalesForce] Trigger on history tracking object

I have history tracking enabled for a custom object. Can I write trigger trigger on the new History tracking of my custom object? I am not getting such example from google nether do I get somewhere it is not possible.

Best Answer

You can have Apex Batch Job where you can Query the history and add your logic.

Use Below Query to get the rows

Select ID,Field,OldValue,NewValue,createddate From CucstomObject__History 
where Field = 'CustomObjectFieldName' and parentId = :CucstomObject.Id 
order by createddate
Related Topic