SOLVED

Limit the number of contacts to return by "Get Leads by filter"

Go to solution
Thomas_Goirand
Level 2

Limit the number of contacts to return by "Get Leads by filter"

Hi there,

Since the amount of leads to be return by the REST API with filters is limited to 300 units, it is very hard to manage the querys. Most of the time I am looking for a way to get this amount under 300 while my goal is to get a single contact matching this query.

Do you guys think it would be possible to add in the filter the number of lines to return? That would help a lot in the use of the API and avoid many headaches.

Best,

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Limit the number of contacts to return by "Get Leads by filter"

Read only enough bytes to get one lead and drop the TCP connection.

What's the application here? And what did you mean by "to manage the querys" exactly?

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Limit the number of contacts to return by "Get Leads by filter"

Don't understand the purpose of such a limit, as the results are not ordered. You'd be effectively getting a random match, which can't make sense on a business level.

Thomas_Goirand
Level 2

Re: Limit the number of contacts to return by "Get Leads by filter"

Sanford Whiteman That is actually the purpose and it makes a lot of sense for some business issues (contact enrichment, forward leads to sales, etc.). If you have any quickwin that could solve?

SanfordWhiteman
Level 10 - Community Moderator

Re: Limit the number of contacts to return by "Get Leads by filter"

No, there's no such function. You can drop the connection forcibly I suppose.

Thomas_Goirand
Level 2

Re: Limit the number of contacts to return by "Get Leads by filter"

Drop the connection forcibly? I d'ont get it sorry.

SanfordWhiteman
Level 10 - Community Moderator

Re: Limit the number of contacts to return by "Get Leads by filter"

Read only enough bytes to get one lead and drop the TCP connection.

What's the application here? And what did you mean by "to manage the querys" exactly?

Thomas_Goirand
Level 2

Re: Limit the number of contacts to return by "Get Leads by filter"

Yep, When resquesting the contacts corresponding to a filter, I mean it is pretty tough to get an amount under this 300 limit while my goal is to get only one contact. Hence the issue about queries I am always trying to manage in marketo to ensure I will have under 300 contacts on each .