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

Rookie Asked on October 4, 2021 in SuiteTalk.
Add Comment
5 Answer(s)

Hi,

You want getAll.

Thanks,

Chris

Intermediate Answered on October 4, 2021.
Add Comment

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?
Rookie Answered on October 4, 2021.
Add Comment

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

Intermediate Answered on October 4, 2021.
Add Comment

Thank you Chris.

Rookie Answered on October 4, 2021.
Add Comment

Use the customer search objects with  the search endpoint, but note the limits about the number of results per request.

Rookie Answered on October 6, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor