New answers tagged compile-error
2
votes
Accepted
How do I assign objects and get foreign keys etc
... where Parent__c in :newRecords.Parent__c ...
Lists of sObjects can't automatically aggregate the values together, you need to pull them out first:
Set<Id> parentIds = new Set<Id>();
...
Top 50 recent answers are included
Related Tags
compile-error × 264apex × 200
trigger × 37
soql × 26
unit-test × 19
visualforce × 16
formula × 14
list × 10
batch × 8
query × 8
controller × 7
json × 7
formula-field × 7
error × 7
deployment × 6
javascript × 5
validation-rule × 5
map × 5
apexrest × 5
string × 5
constructor × 5
lightning-web-components × 4
email × 4
managed-package × 4
validation × 4