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
bennybutlerbennybutler 

campaign change status button

In the lead or contact, on the campaign history list... What would be the easiest way to put a button that.

 

1. Changes campaign status to 'attended' for the campaign member.

2. Changes jumpstart__c to 'Attended'

3. Changes jumpstart_date__c to TODAY()

 

#1 is most important, but it would be nice if #2 and #3 could be done.

 

I'm not afraid of URL hacking buttons...

 

Thanks  

Ispita_NavatarIspita_Navatar

You can write a small apex class having a function to update a campaign with the related/ necessary informtion as parameters and use a custom button on whose click we call the that function get the function executed.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.