Add/Update flow steps with the REST API | Community
Skip to main content
Dennis_Creagh
New Participant
October 8, 2020
Solved

Add/Update flow steps with the REST API

  • October 8, 2020
  • 2 replies
  • 4858 views

I am using the REST API to clone programs, update tokens, and activate batch campaigns and start trigger campaigns.

 

I would like to update flow steps within a program.  For example, I implemented the recommended approach to generate recurring webinar series. 

So I have one master controller program connected to a landing page/form.  The visitor selects from a drop down field, selecting the date they want to register.  The campaign flow step evaluates the date and requests the weekly campaign. The weekly campaign lives in another program and manages the webinar registration and reminder emails.

I add to SF campaign using a flow step and would like to update the campaign name and status of the flow step using the API.

 

I see the id for the flow but do not know how to get that and update it.

Has anyone done this?

 

Thanks,

Dennis

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jay_Jiang

Pretty sure you can't change flow steps of a smart campaign via REST API.

Alternative is to use text tokens in your add to sfdc campaign flow step and update the tokens. You can use the 15 character sfdc campaign id and it'll work 

2 replies

New Participant
October 29, 2020

@dennis_creagh wrote:

I am using the REST API to clone programs, update tokens,[...]

 

Thanks,

Dennis


Hello Dennis!

 

I'm trying to find a way to update many tokens with one API call. 

 

And it sounds like you might have found a way to update tokens (in plural) using the REST API.

 

Would you please be so kind as to share? 🙂 Or point me in the right direction? 

 

Any help would be much appreciated! 

 

Best / ernie

Jay_Jiang
New Participant
November 2, 2020

Unfortunately it's one api call per token value you need to change/update.

 

However, depending on your intentions, you can set multiple temporary token values in one trigger smart campaign api call - not sure if this meets your needs.

 

New Participant
November 2, 2020

Hi @jay_jiang 

 

Thanks for your comment!

 

I found a workaround by building a program in Node.js that can update a list o tokens.

 

But I will check out your suggestion, for other use cases.

 

Thanks again!

 

Best

/ernie

 

Jay_Jiang
Jay_JiangAccepted solution
New Participant
October 9, 2020

Pretty sure you can't change flow steps of a smart campaign via REST API.

Alternative is to use text tokens in your add to sfdc campaign flow step and update the tokens. You can use the 15 character sfdc campaign id and it'll work 

Dennis_Creagh
New Participant
October 16, 2020

thank you. this just saved me huge amounts of time.

 

Thanks again.