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
jhagenjhagen 

How to Map lead "Campaign" field to account "Campaign" field?

When converting a lead to an account I created a custom field to allow the lead source to be mapped to the account lead source. I noticed there is no way to map the lead campaign to an account campaign. Has any one been able to do this?

sfdcfoxsfdcfox

You'll have to use a before insert trigger to query the original lead's campaigns. Note that campaign is a many-to-many relationship, so you'll have to tune your algorithm to choose just one campaign. The opportunity Campaign field feeds from the most recent campaign on the lead during conversion, as a baseline reference.