ebs.getEntityMetadataAsync
Returns metadata of the specified entity by using an implicit Promise to return its result.
Syntax
Copy
>ebs.getEntityMetadataAsync(entityName: string, id: string).then(promise: any);
| Parameter | Description |
|---|---|
entity_name
|
The name of the entity for which you want to get specific metadata. |
promise
|
An object representing the eventual completion or failure of an asynchronous operation. |
Response
| Key | Description |
|---|---|
metadata
|
Displays the requested entity metadata |
Examples
In this example:
- We have an entity with the name FTOS_BNKAP_RetailApplicantData name.
- We want to get the entity's ID.
Copy
ebs.getEntityMetadataAsync("FTOS_BNKAP_RetailApplicantData").then(function(data) {
console.log("getEntityId: ", data.EntityId);
});
The method returns the entity ID.