Hot answers tagged

3

The history tracking records are created asynchronously. You can confirm this behaviour by simply running the update on an account and comparing the created date time of tracked change with Account last modified date and also simply because the apex log has no mention of the history record being created. This is the reason why the tracked changes are not ...


1

Adding onto @Sanatanu answer because i struggled getting this right initially. This needs to be ran After Insert on a Content Version Trigger. After grabbing all of the content version contentDocId's i threw it into this method. i would suggest switching this to @future and dropping the return, but that is up to you. public static final String SNOTE = '...


Only top voted, non community-wiki answers of a minimum length are eligible