SOLVED

Re: Add/Update flow steps with the REST API

Go to solution
Dennis_Creagh
Level 2

Add/Update flow steps with the REST API

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

1 ACCEPTED SOLUTION

Accepted Solutions
Jay_Jiang
Level 10

Re: Add/Update flow steps with the REST API

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 

Jay_Jiang_0-1602249194222.png

View solution in original post

5 REPLIES 5
Jay_Jiang
Level 10

Re: Add/Update flow steps with the REST API

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 

Jay_Jiang_0-1602249194222.png

Dennis_Creagh
Level 2

Re: Add/Update flow steps with the REST API

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

 

Thanks again.

ernie
Level 2

Re: Add/Update flow steps with the REST API


@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
Level 10

Re: Add/Update flow steps with the REST API

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.

 

ernie
Level 2

Re: Add/Update flow steps with the REST API

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