New answers tagged sobject
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 ...
0
votes
SOQL - Listing out down columns of a SObject
select fields(custom) from user limit 1
SOQL documentation
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 ...
Top 50 recent answers are included
Related Tags
sobject × 573apex × 268
soql × 56
list × 38
map × 33
visualforce × 32
rest-api × 31
describesobject × 29
trigger × 27
json × 26
custom-object × 22
fields × 20
sobjecttype × 20
unit-test × 17
query × 17
soap-api × 17
sobjectfield × 17
dynamic-apex × 16
lightning-aura-components × 15
schema × 15
standard-objects × 14
custom-field × 13
javascript × 12
object × 12
salesforce-id × 11