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
lescclarkcpdlescclarkcpd 

Add to campaign custom button

Hi

 

I have a custom object "Applications" that is linked to contacts.  I want to create a button that I can use on standard SF list pages that adds the related contacts to a campaign (users choice).  Is there some code that I can use that uses the standard sf functionality or do I need to create a vf page & controller 

 

thanks

Ritesh AswaneyRitesh Aswaney

Defining a Custom button with this URL should do it

https://na8.salesforce.com/00v/e?c_id=<Campaign Id>&parent_id=<Contact id>

replace na8 with your sandbox  / prod domain name

lescclarkcpdlescclarkcpd

thanks, will this work from a list view as well ??