Hey Matthew Varone,
Looks like you can get pretty close, but not quite, yet:
This would get you a cloned program with tokens, and yet the smart campaigns remain inactive. There is no way to activate a trigger campaign that I can see (I'd be happy to be proven wrong on this point!).
There is one other potential option to consider:
In looking at the documentation, I noticed an optional parameter that I hadn't paid much attention to before:
cloneToProgramName (string, optional): Name of the resulting program. When set, this attribute will cause the campaign, parent program, and all of its assets, with the resulting new name. Programs with snippets, push notifications, in-app messages, static lists, reports, and social assets may not be cloned in this way
tokens (Array[Token], optional): List of my tokens to replace during the run of the target campaign. The tokens must be available in a parent program or folder to be replaced during the run
This looks like it will let you clone a program, set its tokens (for a scheduled run) and then schedule the smart campaign to run (activate it). This seems pretty close to what you want - and it will work as long as your events can function with only batch campaigns (no triggers).
Would be curious to know more about your use case.
Justin Norris | Perkuto
Hi Justin Norris.
I have build a fairly complex event program that contains multiple campaigns, velocity scripting, multiple asset types web hooks etc.
Here is a screen:
The way it works is a sales person fills out a form with the event details, these are sent as an alert to corporate. Corporate then clone this program and adjust all the tokens:
As you would know these tokens change all the info in the assets.
To activate the program we self register with a specific email address, this then triggers an alert to the sales person. This alert contains an activation link, which is a short form. I have stripped all the tracking data from this form and the LP so that the sales person can register on the behalf of a customer.
This triggers a responce to the customer where they start to receive communications. Part of this process encourages the 1st customer to then share a link with her friends and family thus encouraging more registrations and so on.
So far we are trialing the program and it is quite effective. Although it takes about 5 minutes to set one up and we would like to process around a 1000 a month.
If we could automated the cloning of the program and population of the tokens from an external data source we would be able to create greater efficiency.
Look forward to feedback.
I think unfortunately that you will not be able to 100% control this via API with your current setup, as the inability to activate a smart campaign seems a blocker.
We have created custom applications for a number of clients that consist of a portal interface where a non-Marketo user can supply details and submit a form, which results in a program being cloned and tokens set - very similar to what you are looking for. However, a Marketo user always checks and activates the resulting program within the system.
One other consideration that may make things more efficient: you may want to create an SFDC campaign for each event and allow sales people to add leads or contacts to that campaign with a status of registered. If that campaign is synced to the Marketo program then the lead will get added with the appropriate status to the program without the salesperson needing to fill out the form and register as the lead.
Justin Norris | Perkuto