Search code examples
marketo

Get programs and their members and status with Marketo API


I'm wondering if it's possible to get a list of active programs (specifically 'event' types), and then list the members of those programs and their current status within them.

Basically, I'm looking to replicate the Members tab on the top level of the Program view in order to have an external view of our event processes, but add extra functionality to enable non-marketo users to change statuses of those leads (ie from Registered -> Attended).

From what i can see, this isn't possible with the REST API at the moment (?), and I can't quite get my head around what calls to use in the SOAP API...


Solution

  • I see a few different topics in your question, so I'll talk about them individually.

    • Is it possible to get a list of active programs? This is possible. You can get a list campaigns and their associated programs through the Get Multiple Campaigns REST API.
    • Is it possible to get a list program members? This is possible. You can get a list of leads associated with a Program through the Get Multiple Leads by Program Id REST API.
    • Is it possible to a get a lead's status in a program? This is not directly possible, but there is a workaround. When a lead's status changes in a program, you can add that lead to a static list. You can then query leads from that static list using the Get Multiple Leads by List Id REST API.