Can I API the category leadsource?

(Mason K) #1

We are able to pull the individual leadsource.
Can we do the same with the Lead Category?

(Tom Scott) #2

You can do so with the Data Service in the Legacy XMLRPC API.

(Mason K) #3

I meant to ask, how do I pull the Leadsource category for the contact?
It seems we can only do the leadsource or id, but not the category? please verify.

(Tom Scott) #4

The LeadSourceId relates to the LeadSourceCategory via the LeadSource table, accessible via the Data Service. You will have to retrieve it via a second call, although I would cache the LeadSource and LeadSourceCategory tables locally, as it is unlikely to change frequently.