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
Fanny LakoubayFanny Lakoubay 

Apex trigger to automatically add a member to a campaign based on account:type field value

hi,
Could someone help me or direct me to the code to add a trigger to automatically add contacts related to accounts with the field type "account:type" equals to "customer" to a specific campaign?
I want to automatically add all new customers to a campaign called "Current Clients" without having to manually run a report...
thank you very much!!!
Fanny
 
sandeep sankhlasandeep sankhla
Hi Fanny,

It's simple one, let me know where you got stuck or you haven't started on this..I can help you out..
Richard DwyerRichard Dwyer

Sandeep, please can I employ your services to write some code for us for similar :
Could someone help me or direct me to the code to add a trigger to automatically add 'AND REMOVE' contacts related to accounts with the field type "account:type" equals to "X,Y,Z" to a specific campaign?
I want to automatically add 'AND REMOVE without having to manually run a report...
 

RICHARD

sandeep sankhlasandeep sankhla
Hi Richard,

There were too many threads in my inbox, so I missed this thread..

Can you please elaborate all you rrequirnmnet so i can help you out..

Thanks,
Sandeep
Richard DwyerRichard Dwyer

Do you have a 5 mins for a skype call? MY user on skype is flairgymnastics

Thanks