Trigger campaign when company name changes

Anonymous
Not applicable
I'm struggling to get a trigger to work. Basically I want the smart campaign to trigger when a contact is added to a certain company so I can run a flow to put that lead on marketing suspend. Right now I have it set up this way to catch leads when they are created for this account or when a contact is moved to this account from a different one:

0EM50000000Qv8U.jpg
This works when a new lead is created, but I cant get it to run the flow when I change the contact to this company in Salesforce.com. 

Any ideas?
Tags (1)
15 REPLIES 15
Anonymous
Not applicable
To trigger something on a contact record based on a change in the account name, you need to set up a Workflow in SFDC.

For example, I want to update lead status on the contact record based on the account type. I can set up that campaign in Marketo, except it won't work when I'm adding an existing contact to a different account.

I set up a Workflow in SFDC
  • on the contact object
  • evaluate the rule when a record is: created, and ever time it's edited
  • rule criteria:
    • run this rule if the following criteria are met:
    • account: type = Customer
  • Workflow action: field update:
    • object: contact
    • field: Contact: Status
    • new field value: WON - Customer
I then have a campaign in Marketo that triggers when lead status is changed to WON - Customer to suspend marketing (we don't market to customers regularly)
Anonymous
Not applicable
To clarify on this discussion, if you have multiple triggers in a campaign, the flow will start when either/any of them occur. If there is also a filter, the filter must be true when one of the triggers occur for the flow to action.

Triggering off a Company Name data change will NOT work, nor will a trigger for a data value change on any other lookup field.
Anonymous
Not applicable
Yes - both triggers should work together. But again, if a lead is created, the data value is not technically changing so you really dont need this. The only time you need the trigger for data value changes is for leads you already have - so you would create a campaign with trigger - data value changes to cover any instance where the company name field changes to the desired value. 

However, if you are retro-updating existing records, you want to create another smart campaign with no triggers that will go back and update everything. 
Anonymous
Not applicable
Christina, do you think i could just have two triggers in one campaign and then a filter. Something like the following:
  • Trigger > Lead is Created
  • Trigger > Data Value Changes > Company Name
  • Filter > Company Name > ABC Company
Then set the campaign filter as "use all filters". Would both triggers work together?

Thanks!
Anonymous
Not applicable
Jason - So Support says you can change the company name of a lead and that will work as a trigger. But using the Marketo Data Value Changed and selected Company Name field will not work? That doesnt make sense (sounds like a bug). Seems like it's more work than it should be too 😞

Bob - for campaigns that you want to trigger new and existing, you have to create 2 separate smart campaigns. 1 to address the leads in your system and 2 to address all new leads from that point forward.
Anonymous
Not applicable
Hey All, 

Here is the response I got from Marketo Support. Hope it helps:

--

With a contact, the Account is just a "lookup" and not an actual field associated with the contact. Because of this, there is never a company changed activity in the activity log. 

However, if you change the company name of a lead in Salesforce, that will trigger. 

One workaround would be to do this: 
Create a custom Boolean(true of false) field. 
Create a workflow in Salesfroce that triggers that field when the account is changed. 
Add a trigger that looks for that change in Marketo to your campaign. 
Anonymous
Not applicable
That makes sense, Christina!

So if i would want to trigger leads, both new and old, based on a value change what would my smart filter look like?

Thank you in advance!
Anonymous
Not applicable
When a lead comes in, it comes in with data values in place. Nothing is 'changing' if you consider it that way. Make sense?
Anonymous
Not applicable
I am having the same issue as well.

Christina, you mentioned "My first thought is if a lead is created and is new, the data value is not going to change so get rid of this trigger"

Is this true? Will this trigger only work correctly for leads already in the system?
Anonymous
Not applicable
I've tried to separate it so I have only the trigger for "Data Value Changes when the new value is xxx". This still doesn't seem to work. I'm working with support. Will report on what I find out. 
Anonymous
Not applicable
So clone it and have 1 with Trigger lead created and company or email is blah. Then the 2nd smart campaign triggers when data value changes (again either company name or email). Try that. Since you cant do logic for triggers, you need to have separate smart campaigns.
Anonymous
Not applicable
@ChristinaPappas Right, but I'd like to trigger the flow in both cases - any lead added to this account needs to have Marketing Suspend set to "true". 
Anonymous
Not applicable
My first thought is if a lead is created and is new, the data value is not going to change so get rid of this trigger. I had this same issue and this worked for me. Also make sure you put the email may contain @blah blah company so do the company = blah OR email contains blah company. 

Anonymous
Not applicable
@Angela I'm still not having any luck...
Anonymous
Not applicable
Clone it and set up a new campaign removing the first step - lead is created.