function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PauloPaulo 

Associate Lead with Campaign through API

Is there a way to associate a new lead with a campaign when you create it using the API?
werewolfwerewolf
Yes, create a CampaignMember object that points to the campaign and to the lead.