How to fetch list of all status for a particular program/channel | Community
Skip to main content
New Participant
May 3, 2023
Solved

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

  • May 3, 2023
  • 1 reply
  • 1889 views

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?

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 Darshil_Shah1

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.

 

1 reply

Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
May 3, 2023

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.

 

New Participant
May 4, 2023

Thanks, Darshil. This worked for us.

Pranav