Get Anonymous Leads

Anonymous
Not applicable

Get Anonymous Leads

Hi Team,

I am not able to retrieve anonymous leads via SOAP API.What is correct way to get them?

Thanks,
Swati
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: Get Anonymous Leads

Do you have the marketo cookie value of the lead?  You can load a lead using that.

L
Anonymous
Not applicable

Re: Get Anonymous Leads

Yes I am able to retrieve the lead information by using below code.But I want to automate the process.
Anytime new anonymous lead is added,my process should automatically know about that.

 LeadKeySelector keySelector = new LeadKeySelector();
keySelector.setKeyType(LeadKeyRef.IDNUM);
ArrayOfString aos=new ArrayOfString();
aos.getStringItems().add(123456);
keySelector.setKeyValues(aos);
request.setLeadSelector(keySelector);
aos.getStringItems().add(123456);