You need to sign in to do that
Don't have an account?

Lead Field - Lead in Active Campaign - True or False
Hey all,
Is it possible to create a field in the Lead fields that shows whether a lead is in any active campaigns or not?
For example: It doesn't matter if they are in one active campaign or three active campaigns it would shows as true and if no campaign it would be false.
Thanks
Kev
Yes you can.
You can create a field on Lead. Query based on the Lead record on the Campaign. If there is any related Campaign which is active and related to the lead you can assign the value as true.
For this you need a trigger on Lead.
Sorry I'm a little confused on how the trigger would look as wouldn't it need the trigger to be on save and so it would only update when you saved a record?
You can try on Campaign create/update.. so when you will link a Lead to the Campaign that would trigger the trigger and update the Lead record that we just attached to the Campaign.
I have to say today my brian is not working, as I can't figure out the logic of this trigger.
ie.
I think that's it!!!
Lead insert/update trigger
Campaign insert/update trigger
No trigger is required...once you delete the Lead .. there is no way you can set that to false....