Setting Acquisition Program using API

Anonymous
Not applicable

Setting Acquisition Program using API

Is there a way to set a leads' acquisition program if that lead is created using the API?

I am using the REST service and the create/lead operation.

2 REPLIES 2
jiuying_LI
Level 3

Re: Setting Acquisition Program using API

Hi David, if you use API to send a lead into your program indicating : "Programme name"."List Name", then if it's a new lead, the field "acquied by" and "acquisition program name" well be set automatically by marketo.

Kenny_Elkington
Marketo Employee

Re: Setting Acquisition Program using API

This is set through the field acquisitionProgramId.  You need to know the ID of the program which you can get with the program api: http://developers.marketo.com/documentation/programs/get-program-by-name/ You should cache the results for program IDs wherever possible so that you're not hitting the program API unnecessarily