1
vote
Accepted
Querying CampaignMembers based on Lead fields
At first glance, your code is a lot more work than it needs to be. If we use Trigger.newMap instead of Trigger.new, we don't need the partners map. Consequently, we can dramatically reduce your code ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
field-update × 439trigger × 102
workflow × 101
apex × 96
formula × 38
process-builder × 37
formula-field × 27
update × 24
visual-workflow × 22
custom-field × 16
approval-process × 14
date × 14
before-trigger × 14
custom-object × 12
batch × 11
picklist × 11
lookup × 11
datetime × 11
lightning × 10
workflowrule × 10
visualforce × 9
javascript × 9
account × 9
marketing-cloud × 8
case × 8