How to get a subset of leads associated with a program without getting all the leads. | Community
Skip to main content
September 17, 2018
Solved

How to get a subset of leads associated with a program without getting all the leads.

  • September 17, 2018
  • 3 replies
  • 2791 views

Hello,

I have about 50 programs of various types on marketo with many different people associated with each. I would say about 10,000+ leads per program and I expect that to scale to many many more than that. I need to use the Marketo Rest API to get the program statuses of specific lists of leads that exist in programs. However, the getLeadsByProgramId endpoint returns the membership information of all the leads in a program. If I have to run this multiple times an hour when the list of leads in programs scales to hundred of thousands of leads it is going to take much too long to retrieve all the leads in a program even if most have the same information since last retrieval. Is there a way to retrieve the program membership information for only a subset of the leads in a program specified by lead Id?

Michael.

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 SanfordWhiteman

The static list alone won't help because getting the program will still get all the leads.

What you want to do here is use the Activity API to detect changes to lead status.

3 replies

Jim_Thao7
Level 8
September 17, 2018

I'd rec creating a smart campaign that adds records to a list to contain your subset of leads and then run a call to get the leads in the list. 

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
September 17, 2018

The static list alone won't help because getting the program will still get all the leads.

What you want to do here is use the Activity API to detect changes to lead status.

Trish_Keenan1
Level 2
November 28, 2018

Hi Sanford,

This is exactly what I've been working on with the engineers responsible for our data warehouse. Can you provide any more detail around what criteria you apply to get at that specific information (program membership) from the Activity API? Thanks so much.

September 17, 2018

Ok, Thanks Guys.