0

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 1

1

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 .

2
  • Can I not write some apex code to insert into these objects?
    – goSF
    Oct 19, 2015 at 20:07
  • No you cannot ..Its only salesforce that can write this . Oct 19, 2015 at 20:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .