title: Exporting Locations for a Customer using Acumatica API
body: <p>I'm trying to use the Acumatica Web Services API to export all Locations for a Customer.  I would expect that using the Locations screen I could set a filter on the Customer ID field, which I think is LocationSummary.Customer, and that would return me all Locations for that customer.  Instead, I'm always getting 0 results returned.  Code is below, and I've also shown a screen shot of the Locations that exist for a test customer with ID 012349, and the debugger results showing 0 records returned.</p>
  
  <pre><code>Public Function GetAddressList(ByVal customerID As String) As String()()
      Dim address As CR303010Content = m_context.CR303010GetSchema()
      m_context.CR303010Clear()
  
      Dim customerFilter As Filter = New Filter()
      customerFilter.Field = address.LocationSummary.Customer
      customerFilter.Condition = FilterCondition.Equals
      customerFilter.Value = customerID
  
      Dim searchfilters() As Filter = {customerFilter}
      Dim searchCommands() As Command = {address.LocationSummary.Customer, address.LocationSummary.LocationID, address.GeneralInfoLocationAddress.AddressLine1, address.GeneralInfoLocationAddress.City}
      Dim searchResult As String()() = m_context.CR303010Export(searchCommands, searchfilters, 0, False, False)
  
      Return searchResult
  End Function
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/sQLWQ.png" alt="Locations shown in ERP"></p>
  
  <p>Debugger showing searchResult array with a length of 0
  <img src="https://i.stack.imgur.com/QvxPX.png" alt="Locations returned in debugger"></p>