get all the customer records in customer object

Posted by Rollbase User on 09-Mar-2012 09:16

Hello there, I am trying to get all the customers in the customer object. My rest API query was http:// localhost:8080/rest/api/search?sessionId=sessionid&query=CUSTOMER&objName=customer This result was supposed to bring 2 records, but it came with 4 records (the two extra came from users record). Is there another way to get all the customer records in the customer object? Another question is, when I get all the details of a customer from getDataObj in REST API, our own custom fields does not come with the result.

All Replies

Posted by Admin on 09-Mar-2012 13:11

I see 2 problems with your call:



1. Object name is case-sensitive, so "customer" is probably invalid object name



2. To bring all record there is no point to search for "CUSTOMER" text



I would recommend you use getPage API instead of search.

This thread is closed