2022 Developer Survey is open! Take survey.

New answers tagged

2 votes
Accepted

sObject types from string

No, you cannot do that in the way you've shown. Collections require you to use types (not variables, not a type variable) that can be resolved at compile-time. Same deal with variables. The type must ...
user avatar
  • 46.8k
0 votes

SOQL - Listing out down columns of a SObject

select fields(custom) from user limit 1 SOQL documentation
user avatar
2 votes
Accepted

Save Parent - Child Hierarchy for same SObject in a single DML

We cant use single DML statement to insert both parent and child which belong to same Sobject. To back that up I have also added link to document. You can’t add a record that references another ...
user avatar
  • 436

Top 50 recent answers are included