Add lead to a smart campaign

Shiran_Ben_Shim
Level 1

Add lead to a smart campaign

Hi,

when creating lead in Marketo using rest api, is there a way to add it to a specific smart campaign ?

Thanks.

4 REPLIES 4
Ronen-Was-SRpro
Level 7

Re: Add lead to a smart campaign

Hi Shiran,

Yes, there is a way.

For example, if the rest API is build properly and adds the new leads to a specific static list.

In the smart list, the trigger would be "member of that specific list".

Ronen Wasserman
Shiran_Ben_Shim
Level 1

Re: Add lead to a smart campaign

Hi Ronen,

Thanks for your answer.

This is part of the api call I"m using:

"action":"createOrUpdate",

"ProgramName": "Registration from Affiliate",

"lookupField":"email",

"input":[ {"firstName":"'||[First_Name]||'",

"lastName":"'||[Last_Name]||'",

"email":"'||[Email]||'",

"phone":"'||[Phone_Number]||'",

but in the end the lead is added to Marketo but not to the Program itself.

Can you advise?

SanfordWhiteman
Level 10 - Community Moderator

Re: Add lead to a smart campaign

You can qualify someone for a Smart Campaign in several different ways as a result of a simple API insert. You can add them to a program and trigger on Program Status Changed. Add them to a (static) list and trigger on Added to List which is what Ronen is talking about. Set a certain field to the current timestamp and trigger on Data Value Changed to that field. There's no single best way.

When posting code, please highlight it (as JSON in this case) using the Advanced Editor's syntax highlighter so it's readable.

https://s3.amazonaws.com/blog-images-teknkl-com/syntax_highlighter.gif

Ronen-Was-SRpro
Level 7

Re: Add lead to a smart campaign

The leads can be added to a specific list (according to a list number), it demands some work.

You can contact us personally if needed.

Ronen Wasserman