Can we use the SOAP API's getMultipleLeads to return a Smart List? | Community
Skip to main content
January 1, 2013
Solved

Can we use the SOAP API's getMultipleLeads to return a Smart List?

  • January 1, 2013
  • 2 replies
  • 1419 views

Hi

We need to get some basic counts out of the Marketo database for a website UI.

We have records with a custom field "X" and ideally we'd just get those records back, but I can't see any way to query a field using getMultipleLeads, and there only seem to be a couple of "Ideas" posted here in the community along those lines.

So I tried making a "Smart List" thinking I might be able to target it using a StaticListSelector - is this possible?

If that is possible, might someone have an example of doing it in PHP?  I've tried all sorts of permutations for defining the leadSelector and can't get any result.

Thank you

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
getMultipleLeads only supports static lists. This is mostly because Smart Lists aren't pre-calculated, and getting the total members at runtime of the API call could be too long.

One option is to use a Smart Campaign to create a static list. You could also use the scheduleCampaign call to programatically run that Smart Campaign.

2 replies

May 19, 2016

I had the same questions myself!

Accepted solution
January 2, 2013
getMultipleLeads only supports static lists. This is mostly because Smart Lists aren't pre-calculated, and getting the total members at runtime of the API call could be too long.

One option is to use a Smart Campaign to create a static list. You could also use the scheduleCampaign call to programatically run that Smart Campaign.
May 19, 2016

I didn;t realize this, very nice