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
SpongeBob_2009SpongeBob_2009 

APEX: Master & Detail insert in same session?

Trying to figure out a way to insert audit detail at the same time the audit header information is created.  Is this even possible?

 

For example:

My web service call contains many transactions(sObj rows) in the payload.  The master will contain ws header  info, and the detail will contain the payload detail.