GetObjectAllRecords

This method is used to fetch all the records for the specific Salesforce Object like Contact or Opportunity.

Parameters:

Method Inputs

Method Name

GetObjectAllRecords

Request Type

GetObjectAllRecords

Parameters : ObjectName

Salesforce Object name

e.g. Contact

Parameters: FieldNames

One or more fields separated by comma

e.g. Id, FirstName, LastName,Phone

Sample Response:

// Sample Response
[
 {
 "attributes": {
 "type": "Contact",
 "url": "/services/data/v47.0/sobjects/Contact/0032w000002GFOPAA4"
 },
 "Id": "0032w000002GFOPAA4",
 "FirstName": "Rose",
 "LastName": "Gonzalez",
 "Phone": "(512) 757-6000"
 },
 {
 "attributes": {
 "type": "Contact",
 "url": "/services/data/v47.0/sobjects/Contact/0032w000002GFOQAA4"
 },
 "Id": "0032w000002GFOQAA4",
 "FirstName": "Sean",
 "LastName": "Forbes",
 "Phone": "(512) 757-6000"
 }
]

Last updated