Questions tagged [dynamic-dml]
The dynamic-dml tag has no usage guidance.
2 questions
32
votes
2
answers
69k
views
Apex Cast sObject list dynamically to a specific sObject Type
The upsert() DML operation requires a specific List based on a specific sObject type, for instance:List<Account> lstAccount = new List<Account>();
However, we are trying to generate a ...
8
votes
3
answers
8k
views
Insert List of Parent and Child Records in One DML Statement
I saw an example how to insert Parent and Child Record in one DML Statement from Developer Guide and It's Working Fine no issue in that.
Here In my case I would like insert List Of Both Parent and ...