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

Lead Conversion with Campaign.

Hi All,

I have a trigger in lead object. Below is trigger functionality,
In after insert of lead trigger I am calling the future method.
In the future method I am updaing the same lead records.
Now, In the lead Update I am converting the lead.

Have done this because I wanted lead conversion to take place in seperate transaction.

Now, When I insert leads its getting converted to contact and opportunity which is fine.

But the problem is when I try to load leads under the campaign, below is the screen shot where I am trying to load.

User-added image

So When I load lead through the campaign member, It should convert to contact and the contact must be added as the campaign member.

But for me the lead is getting converted as soon as I am loading the records. But when I refresh the campaign none of the contacts are associated.

Also during the web to lead form submission. Since its single records I guess its creating contact and that contact is added as campaign member.

Let me know your suggestions,