ebs.getByID
Returns detailed information about a specific record based on its ID and parent entity.
Syntax
Copy
ebs.getById(entityName: string, id: string, callback: any, errorCallback: any): void
| Parameter | Description |
|---|---|
entity_name
|
The parent entity, such as entity, attribute, relationship, systemuser, systemusertype, customizationset, businessunit, or portal. |
item_id
|
Unique internal identifier of the record. |
Response
| Key | Description |
|---|---|
Records
|
Displays the record's attribute values. |
Examples
In this example, we request information about a customer with the 64f6a2cd-bda5-47b0-8477-3c9672ae10db ID. The method returns all attributes of the account entity for the specified customer.
Copy
ebs.getById("account", "64f6a2cd-bda5-47b0-8477-3c9672ae10db", function(e) {
console.log(e.Records[0].name);
console.log(e.Records[0].surname);
});