New answers tagged dynamic-soql
1
vote
Accepted
Handling Lookup Fields with Multiple Object Types in SOQL for a Custom LWC
To correctly query Polymorphic fields (field which could point of one of many objects), you need to use typeof clause. You need to construct the query like this depending on if selected field exists ...
Top 50 recent answers are included
Related Tags
dynamic-soql × 494soql × 308
apex × 298
visualforce × 42
query × 41
soql-injection × 20
batch × 19
dynamic-apex × 19
trigger × 17
sosl × 17
dynamic-visualforce × 11
dynamic-binding × 11
governorlimits × 10
sobject × 9
schema × 9
lightning-web-components × 7
community × 7
list × 7
describesobject × 7
database × 7
aggregate × 7
relationships × 6
customsetting × 6
string × 6
lightning-aura-components × 5