cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Add/Update leads into Marketo using batchsize of 300

sravankunadi
New Contributor II

I would like to pass 300 leads in one API call. I am able to pass one record and it is working fine.

How do i achieve this ?

This is the sample request.
{
โ€œactionโ€:โ€œcreateOnlyโ€,
โ€œlookupFieldโ€:โ€œemailโ€,
โ€œinputโ€:[
{
โ€œemail":"kjashaedd-1@klooblept.comโ€,
โ€œfirstNameโ€:โ€œKataldar-1โ€,
โ€œpostalCodeโ€:โ€œ04828โ€
},
{
โ€œemail":"kjashaedd-2@klooblept.comโ€,
โ€œfirstNameโ€:โ€œKataldar-2โ€,
โ€œpostalCodeโ€:โ€œ04828โ€
},
{
โ€œemail":"kjashaedd-3@klooblept.comโ€,
โ€œfirstNameโ€:โ€œKataldar-3โ€,
โ€œpostalCodeโ€:โ€œ04828โ€
}
]
}

1 REPLY 1

AleksandarAngel
Contributor III

Hi @sravankunadi

You can group the leads using the Group By N Snap, with Group Size set to 300 (because of the limitation of 300 records that can be created or updated at the same time).

Group By N

Then you map the request.
Mapper

And send the payload to Marketo.

Sample pipeline:
SL-comm-Marketo-multiple-leads_2023_02_15.slp (8.8 KB)

Let me know if this is what you want to achieve.

BR,
Aleksandar.