I am trying to add records to the field audit of a custom object using apex trigger ? Should I use the fieldHistoryarchive object or the (customobject)history object? Can anyone provide an example?
1 Answer
You cant insert record into any of these objects .You can only query them and cannot make a fresh entry into this table .
The audit is internally populated by salesforce .
-
-
No you cannot ..Its only salesforce that can write this . Oct 19, 2015 at 20:11