New answers tagged

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>(); ...
user avatar
  • 429k

Top 50 recent answers are included