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
cmlcml 

How to Capture an event when a new SObject is created in Salesforce

Hi All,

 

I have to capture insert event when User creates a new SObject and after capturing event i have to write a code to insert a corresponding audit record to an existing audit object. I cann't do it with trigger because it works only when a new record inserted/updated for an existing SObject.

 

Please help me on this.

 

Or can we have something by which we could able to identify existing Salesforce SObjects in Apex code ?