SOLVED

Re: How to fetch list of all status for a particular program/channel

Go to solution
AmanBharti
Level 2

How to fetch list of all status for a particular program/channel

Hi,

 

We are an events platform company that is building integration with Marketo. 

As a part of the integration, we would like users to select which "Program Member Status" should be updated for a lead at different trigger points available in our system (e.g. Registers for the event, Attends the event, etc.)

 

We already know the Program name and ID for which the member status should be updated for. We would like to fetch ALL available statuses for a program (or channel), so that user can select that in our platform UI while setting up the integration.

 

Can someone help us with which API can provide a list of all statuses available for that Program?

Pranav
1 ACCEPTED SOLUTION

Accepted Solutions
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to fetch list of all status for a particular program/channel

You could use the Get Channels by Name API endpoint to get channel statuses as the Query Programs endpoint doesn't return the individual channel statuses, it just returns the program channel in the response. Make sure you don't make direct API calls to Marketo from the front end as that'd open up a massive vulnerability as you'll expose the API credentials to the world, rather make the calls securely via a backend server w/o exposing any creds on the client side.

 

View solution in original post

2 REPLIES 2
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: How to fetch list of all status for a particular program/channel

You could use the Get Channels by Name API endpoint to get channel statuses as the Query Programs endpoint doesn't return the individual channel statuses, it just returns the program channel in the response. Make sure you don't make direct API calls to Marketo from the front end as that'd open up a massive vulnerability as you'll expose the API credentials to the world, rather make the calls securely via a backend server w/o exposing any creds on the client side.

 

AmanBharti
Level 2

Re: How to fetch list of all status for a particular program/channel

Thanks, Darshil. This worked for us.

Pranav