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.
Solved! Go to Solution.
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.
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.
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.
Ok, Thanks Guys.