Get all customers using SOAP API
How can I get a list of all customers using a SOAP request? I don’t not want to use getList where we need to pass a list of internal IDs since I may not know all the internal Ids
Hi,
You want getAll.
Thanks,
Chris
Thanks Chris.
As per the documentation, getAll is supported for the following records:
<simpleType name="GetAllRecordType"> <restriction base="xsd:string"> <enumeration value="budgetCategory"/> <enumeration value="campaignAudience"/> <enumeration value="campaignCategory"/> <enumeration value="campaignChannel"/> <enumeration value="campaignFamily"/> <enumeration value="campaignOffer"/> <enumeration value="campaignSearchEngine"/> <enumeration value="campaignSubscription"/> <enumeration value="campaignVertical"/> <enumeration value="currency"/> <enumeration value="leadSource"/> <enumeration value="state"/> <enumeration value="supportCaseIssue"/> <enumeration value="supportCaseOrigin"/> <enumeration value="supportCasePriority"/> <enumeration value="supportCaseStatus"/> <enumeration value="supportCaseType"/> <enumeration value="taxAcct"/> </restriction> </simpleType> I want to fetch all the data for either the customer or the vendor. What am I missing?
Hi,
Apologies – I had forgotten that getAll only works for those records that “do not have a search interface”.
I think the best you can do here is to construct a Saved Search to return the data that you need.
Thanks,
Chris
Use the customer search objects with the search
endpoint, but note the limits about the number of results per request.