Get Anonymous Leads | Adobe Experience League Community
Skip to main content
May 29, 2014
Question

Get Anonymous Leads

  • May 29, 2014
  • 2 replies
  • 630 views
Hi Team,

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

Thanks,
Swati
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

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

L
May 29, 2014
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);