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
mrjaobermrjaober 

Create a button on Contacts object to Add to Campaign

Hello,

 

Could someone give me the code necessary to create a button that goes onto the contact object that allows me to add the contact I am viewing to a campaign?

 

Thanks in advance. 

Best Answer chosen by Admin (Salesforce Developers) 
matermortsmatermorts

You don't have the Campaign History related list on your Contact page layout? There's a button there for "Add to Campaign".

All Answers

matermortsmatermorts

Why not use the standard functionality on the Campaign History related list?

mrjaobermrjaober

This button exist on reports and in campaigns, but not on the contact record. I'm trying to make a task two clicks closer. 

matermortsmatermorts

You don't have the Campaign History related list on your Contact page layout? There's a button there for "Add to Campaign".

This was selected as the best answer
mrjaobermrjaober

Oh my gosh, you are right. I didn't even think of that or notice that. This is one of those cases of overthinking a problem.

 

Thanks for talking some sense into me. 

matermortsmatermorts
Been there, done that. Glad it's working out for you! :-)
Ryan Young 1Ryan Young 1
Our VP's are very interested in reducing clicks to 1. That said, is this possible?