# GetObjectById

This method is used to fetch one specific record for the specific Salesforce Object like Contact or Opportunity

#### Parameters:

| MethodInputs | Method Name            | GetObjectById                                                                         |
| ------------ | ---------------------- | ------------------------------------------------------------------------------------- |
|              | Request Type           | GetObjectById                                                                         |
|              | Parameters: ObjectName | <p>Salesforce Object name</p><p>e.g. Contact</p>                                      |
|              | Parameters: Id         | <p>Salesforce Object Id</p><p>e.g. 032w000002GFOPAA4</p>                              |
|              | Parameters: FieldNames | <p>One or more fields separated by comma </p><p>e.g.Id, FirstName, LastName,Phone</p> |

#### Sample Response:

```json
// Sample Response
[
 {
 "Id": "0032w000002GFOPAA4",
 "FirstName": "Rose",
 "LastName": "Gonzalez",
 "Phone": "(512) 757-6000"
 }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ixhello.com/ixhc/general/edit-custom-apps/methods/data-source-salesforce/getobjectbyid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
