$caila.deleteClientEntityRecords
Removes the records with the specified id
for a certain client.
Syntax
The arguments accepted by the method are the name of the entity the records of which are to be removed, entity IDs (id
) and the clientId
.
- ECMAScript 5
- ECMAScript 6
$caila.deleteClientEntityRecords("EntityName", [Number("id"), Number("id")]);
In the ECMAScript 6 runtime, the method is asynchronous:
await $caila.deleteClientEntityRecords("EntityName", [Number("id"), Number("id")]);
Parameter | Type | Mandatory | Description |
---|---|---|---|
EntityName | string | Yes | Name of the entity where the record is to be removed. |
id | string | Yes | Record ID. |
clientId | string | No | Client ID. |
classifierToken | string | No | API key used to access an external trained classifier. |
tip
Use the
$caila.getClientEntityRecords
method to get the record IDHow to use
Remove the records of the ClientEntity
entity:
- ECMAScript 5
- ECMAScript 6
state: Example
intent: /Delete
script:
$caila.deleteClientEntityRecords("ClientEntity", [Number("292517"), Number("292516")]);
state: Example
intent: /Delete
scriptEs6:
await $caila.deleteClientEntityRecords("ClientEntity", [Number("292517"), Number("292516")]);