Re: Request new leads on static list with REST API

Rebecca_Carranz
Level 1

Request new leads on static list with REST API

We are making the conversion from the SOAP to REST API.  With SOAP, the streamPosition was used to determine when new leads were added to a static list.  I can't seem to figure out the equivalent functionality in REST.  I have used "Get multiple leads by list id", however, there isn't an easy way to only retrieve the new leads on the list.  Any suggestions?

Tags (2)
1 REPLY 1
Grégoire_Miche2
Level 10

Re: Request new leads on static list with REST API

Hi Rebecca,

I am afraid that you will have to use a more sophisticated logic here:

  • Prepare a smart campaign that remove the leads from the list and add them to a second, "history" list.
  • Once you have retrieved the leads from Marketo, just trigger that SC for all the leads you have retrieved, using the "request campaign" API

Greg