Skip to main content

Questions tagged [dynamic-dml]

Filter by
Sorted by
Tagged with
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 ...
Robin Wijnen's user avatar
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 ...
Sharat's user avatar
  • 1,059