CONTACT_BUSINESS_SEARCH CONTACT Endpoint
  /rpc/contact/?method=CONTACT_BUSINESS_SEARCH  
  For information on how to use Advanced Searches, click here  
  DETAILS    
  Prefix ContactBusiness  
  SUB SEARCHES    
  Action ACTION_SEARCH  
  AddressLink CORE_ADDRESS_LINK_SEARCH  
  BusinessGroup CONTACT_BUSINESS_GROUP_SEARCH  
  ContactPerson CONTACT_PERSON_SEARCH  
  CustomerStatusChange CONTACT_BUSINESS_CUSTOMER_STATUS_CHANGE_SEARCH  
  RelationshipBusiness CONTACT_RELATIONSHIP_SEARCH  
  RelationshipOtherBusiness CONTACT_RELATIONSHIP_SEARCH  
  SecondaryRelationshipContactBusiness CONTACT_SECONDARY_RELATIONSHIP_SEARCH  
  SupplierStatusChange CONTACT_BUSINESS_SUPPLIER_STATUS_CHANGE_SEARCH  
  AVAILABLE FIELDS TYPE  
  ABN Text (20)  
  Area Numeric  
  AreaText Text (50)  
  ASIC Text (20)  
  BillToBusiness Numeric  
  BillToBusinessText Text (50)  
  BillToPerson Numeric  
  BillToPersonText Text (50)  
  BusinessStructure Numeric 1=Company,2=Partnership,3=Sole Trader,4=Trust,5=Individual,6=n/a,7=Government Body,8=Not For Profit
  CardExpiry Text (10)  
  CardName Text (50)  
  CardNumber Text (50)  
  ContactSince Date  
  ContactSource Numeric You can define your own, but there are some standard choices, eg 1=Word of Mouth,2=Trade Show,3=Advertising
  ContactSourceText Text (50) As above
  Credit Numeric Credit Limit
  CreditorBalanceDate Date This field is maintained by FINANCIAL_DEBTORSCREDITORS_PROCESSING_MANAGE. It reflects that most recent time that you did not owe them money (ie via Expenses and Payments). It is used to aid with the performance of FINANCIAL_CREDITOR_SEARCH
  CustomerStatus Numeric 1=Active,2=Prospect,3=Non-Active,4=Soon to be Non-Active,5=Internal,6=Alternate Supplier,7=Reference Only,8=Pending Approval
  CustomerStatusText Text (50) eg Pending Approval
  DebtorBalanceDate Date This field is maintained by FINANCIAL_DEBTORSCREDITORS_PROCESSING_MANAGE. It reflects that most recent time that they did not owe you money (ie via Invoices and Receipts). It is used to aid with the performance of FINANCIAL_DEBTOR_SEARCH
  DirectDebitAccountName Text (50)  
  DirectDebitAccountNumber Text (50)  
  DirectDebitBank Text (20)  
  DirectDebitBranchNumber Text (50)  
  Email Text (50)  
  ExpenseFinancialAccount Numeric Define your own
  ExpenseFinancialAccountText Text (50)  
  FaxNumber Text (50)  
  Id Numeric  
  Industry Numeric Standard industry values, eg 1=A-Agriculture, Forestry and Fishing,2=B-Mining,3=C-Manufacturing
  IndustryText Text (50)  
  Legalname Text (100)  
  MailingAddressCombined Text (200) Mailing Address 1 and Mailing Address 2 in the one field
  MailingAddress1 Text (100)  
  MailingAddress2 Text (100)  
  MailingCountry Text (50)  
  MailingPostCode Text (10)  
  MailingState Text (50)  
  MailingSuburb Text (50)  
  Notes Text (6000)  
  OtherInfo Text (100)  
  PaymentAdvice Numeric 1=Send Invoice Only,2=Send Invoice & Statement
  PaymentAdviceText Text (50) As above
  PaymentAdviceDays Numeric  
  PaymentMethod Numeric Define your own, plus there aree some defaults eg 1=Cheque,2=Visa or Mastercard,3=Direct Debit
  PaymentMethodText Text (50) As above
  PaymentTerms Numeric eg 1=Manually Set,2=7 Days from Invoice Date,3=14 Days from Invoice Date
  PaymentTermsText Text (50) As above
  PaymentTermsNotes Text (200)  
  PhoneNumber Text (30)  
  PriceGroup Numeric Define your own
  PriceGroupText Text (50)  
  PrimaryContactPerson Numeric  
  PrimaryContactPersonText Text (50)  
  Private Text (1) Y / N
  Rating Numeric You can define your own, and also specify if you want the defaults. eg default values 1=A,2=B,3=C
  RatingText Text (50) As above
  Reference Text (50)  
  RelationshipManager Numeric Id of the contact's relationship manager
  RelationshipManagerText Text (50) Name of the contact's relationship manager
  RevenueFinancialAccount Numeric Define your own
  RevenueFinancialAccountText Text (50)  
  SendOverDue Text (1) Y/N
  StatusNotes Text (254)  
  StreetAddressCombined Text (200) Streeet Address 1 and Street Address 2 in the one field
  StreetAddress1 Text (100)  
  StreetAddress2 Text (100)  
  StreetCountry Text (50)  
  StreetPostCode Text (10)  
  StreetRegion Text (50)  
  StreetState Text (50)  
  StreetSuburb Text (50)  
  SupplierStatus Numeric Same values as Customer Status
  SupplierStatusText Text (50)  
  Tradename Text (100)  
  WebAddress Text (100)  
       
  Structure Fields   Click here for more information
  Audit Fields   Click here for more information
  LINKABLE SEARCHES    
  ContactPerson   Click here for the fields
  CustomerStatusChange    
  RelationshipBusiness   Click here for the fields
  RelationshipOtherBusiness   Click here for the fields
  SecondaryRelationshipContactBusiness   Click here for the fields
  SupplierStatusChange    
  RETURN  
  Selected Fields  
  EXAMPLE
  1. Plain Id based search. Returns in XML
  var oAdvancedSearch = new AdvancedSearch();
oAdvancedSearch.endPoint = 'contact';
oAdvancedSearch.method = 'CONTACT_BUSINESS_SEARCH';
oAdvancedSearch.addField( 'reference,tradename,legalname,phonenumber,faxnumber,industry,industrytext,createddate');
oAdvancedSearch.addFilter('id', 'EQUAL_TO', sSearchContext);
oAdvancedSearch.rf = 'XML';

oAdvancedSearch.getResults(interfaceClientShow);