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
sf_davesf_dave 

{!CampaignMember.Id} field blank in mass emails

Hi Everyone,

 

I've created a Visualforce page allowing someone that is a member of a campaign to visit the page as a RSVP for them attending the event.

 

The problem is I need to email each contact a link with their CampaignMember Id so they can click on a link like:

http://oursite.force.com/attend?id=xxxxxxxxxxxx

 

The problem is I'm having a heck of a time getting the {!CampaignMember.Id} field in the email I created to get replaced with the users CampaignMember id.

 

I've created the email template with a link that has this as the query string:

?id={!CampaignMember.Id}

 

and I've tried both the "Send Test and Verify Merge Fields" button on the email as well as adding myself as a contact to the actual campaign, going through Contacts->Mass Email Contacts, creating a view that contains just myself and is tied to the campaign in Salesforce and sending out the "batch" email to myself. 

 

Both methods result in me receiving an email with a link that looks like:

http://oursite.force.com/attend?id=

 

Any insight on how to mass email members of a campaign and sending a link with their CampaignMember id would be appreciated!!

 

Best,

-Dave

jkucerajkucera

You can't use CampaignMember.Id in mass emails as the system has no idea which campaign member to use as there can be multiple campaign members per lead or contact.

 

You need to use campaign member workflow email alerts to populate campaign member info in an email template.