You need to sign in to do that
Don't have an account?
Swapnil Patne
How to create a trigger that will add a contact into a specific campaign based on two pick list value?
Please can someone help me with how to create a trigger that will add or remove a contact into a specific campagin based on two picklist fields, one on contact object and second on account obbject.
If contact is tagged as CFL or C-Level and Account is active (yes) then add the contact to specific campaign. If account is not active ( = No) then do not add.
If contact is modified and untagged as CFL or C-Level and is a member of the campaign then remove contact from campaign.
If contact is
Contact picklist field name: Member Tier Type
Values: CFL, C-Level
Account pick list field name: Active
Values: Yes, No
Add contacts to campaign:
Campaign ID = 70111000000GTNQ
I hope someone can help.
Thanks,
Swapnil
If contact is tagged as CFL or C-Level and Account is active (yes) then add the contact to specific campaign. If account is not active ( = No) then do not add.
If contact is modified and untagged as CFL or C-Level and is a member of the campaign then remove contact from campaign.
If contact is
Contact picklist field name: Member Tier Type
Values: CFL, C-Level
Account pick list field name: Active
Values: Yes, No
Add contacts to campaign:
Campaign ID = 70111000000GTNQ
I hope someone can help.
Thanks,
Swapnil
Shashank (Salesforce Developers)
Here's a sample trigger: