Is there any way to update a constraint value on a smart campaign trigger programatically? | Community
Skip to main content
Level 2
January 27, 2026
Question

Is there any way to update a constraint value on a smart campaign trigger programatically?

  • January 27, 2026
  • 3 replies
  • 54 views

Trying to automate program/campaign creation, but we have 1 smart campaign that requires an event code as a trigger constraint for the custom obejct trigger. We tested using a token for the value, but it was not working. 

 

Is there any other way to programmatically populate this? 

3 replies

SanfordWhiteman
Level 10
January 27, 2026

Nope. While Smart Lists for Smart Campaigns are readable using the API, they’re not writable.

 

If you were to change your logic (significantly!), you could use a Flow Step that calls a webhook-compatible service, including a a {{my.token}} in  the payload, then continue from there using the API. You’d update the {{my.token}} per-program to change the overall flow. Unlikely to be worth it but we do that occasionally.

anildhull
Level 2
January 27, 2026

Can you explain more about the use case?

I did similar kind of thing by using the below steps. Not sure if that is relevant to your use case.

  1. Create a program token with the string type
  2. Create a campaign with the smart list: Campaign is requested and Other filter matching the new value to the program token {{my.test}}

Once this is ready, you can update the program token using the API and request the campaign using the API to process the person through the campaign.

Anil D
SanfordWhiteman
Level 10
January 27, 2026

🠶 … filter matching the new value to the program token {{my.test}}

But you can’t compare a static value to a {{my.token}} in a Smart List filter. This feature does not exist. Of course you can pass a runtime {{my.token}} in a Request Campaign API call that will persist for the lifetime of the trigger, but that’s not the same thing.

 

Can you show the actual setup here, with screenshots, so people know what you’re referring to?

Level 1
January 28, 2026

No, not directly
Marketo does not provide an API or UI method to programmatically update a trigger constraint value (e.g., change utm_source = LinkedIn to Facebook) on an existing Smart Campaign.