Manage records in Agiloft CLM
Integrate with Agiloft contract lifecycle management to create, read, update, delete, and search records. Supports file attachments, SQL-based selection, saved searches, and record locking across any table in your knowledge base.
Attach a file to a field in an Agiloft record.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts") |
recordId | string | Sí | ID of the record to attach the file to |
fieldName | string | Sí | Name of the attachment field |
file | file | No | File to attach |
fileName | string | No | Name to assign to the file (defaults to original file name) |
| Parámetro | Tipo | Descripción |
|---|
recordId | string | ID of the record the file was attached to |
fieldName | string | Name of the field the file was attached to |
fileName | string | Name of the attached file |
totalAttachments | number | Total number of files attached in the field after the operation |
Get information about file attachments on a record field.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts") |
recordId | string | Sí | ID of the record to check attachments on |
fieldName | string | Sí | Name of the attachment field to inspect |
| Parámetro | Tipo | Descripción |
|---|
attachments | array | List of attachments with position, name, and size |
↳ position | number | Position index of the attachment in the field |
↳ name | string | File name of the attachment |
↳ size | number | File size in bytes |
totalCount | number | Total number of attachments in the field |
Create a new record in an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts", "contacts.employees") |
data | string | Sí | Record field values as a JSON object (e.g., {"first_name": "John", "status": "Active"}) |
| Parámetro | Tipo | Descripción |
|---|
id | string | ID of the created record |
fields | json | Field values of the created record |
Delete a record from an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts", "contacts.employees") |
recordId | string | Sí | ID of the record to delete |
| Parámetro | Tipo | Descripción |
|---|
id | string | ID of the deleted record |
deleted | boolean | Whether the record was successfully deleted |
Resolve the internal numeric ID of a choice-list value, for use in EWSelect WHERE clauses against choice fields.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "case", "contracts") |
fieldName | string | Sí | Choice field name (e.g., "priority", "status") |
value | string | Sí | Choice display value to resolve (e.g., "High", "Active") |
| Parámetro | Tipo | Descripción |
|---|
choiceLineId | number | Internal numeric line ID of the choice value |
Lock, unlock, or check the lock status of an Agiloft record.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts") |
recordId | string | Sí | ID of the record to lock, unlock, or check |
lockAction | string | Sí | Action to perform: "lock", "unlock", or "check" |
| Parámetro | Tipo | Descripción |
|---|
id | string | Record ID |
lockStatus | string | Lock status (e.g., "LOCKED", "UNLOCKED") |
lockedBy | string | Username of the user who locked the record |
lockExpiresInMinutes | number | Minutes until the lock expires |
Read a record by ID from an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts", "contacts.employees") |
recordId | string | Sí | ID of the record to read |
fields | string | No | Comma-separated list of field names to include in the response |
| Parámetro | Tipo | Descripción |
|---|
id | string | ID of the record |
fields | json | Field values of the record |
Remove an attached file from a field in an Agiloft record.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts") |
recordId | string | Sí | ID of the record containing the attachment |
fieldName | string | Sí | Name of the attachment field |
position | string | Sí | Position index of the file to remove (starting from 0) |
| Parámetro | Tipo | Descripción |
|---|
recordId | string | ID of the record |
fieldName | string | Name of the attachment field |
remainingAttachments | number | Number of attachments remaining in the field after removal |
Download an attached file from an Agiloft record field.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts") |
recordId | string | Sí | ID of the record containing the attachment |
fieldName | string | Sí | Name of the attachment field |
position | string | Sí | Position index of the file in the field (starting from 0) |
| Parámetro | Tipo | Descripción |
|---|
file | file | Downloaded attachment file |
List saved searches defined for an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name to list saved searches for (e.g., "contracts") |
| Parámetro | Tipo | Descripción |
|---|
searches | array | List of saved searches for the table |
↳ name | string | Saved search name |
↳ label | string | Saved search display label |
↳ id | string | Saved search database identifier |
↳ description | string | Saved search description |
Search for records in an Agiloft table using a query.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name to search in (e.g., "contracts", "contacts.employees") |
query | string | Sí | Search query using Agiloft query syntax (e.g., "status='Active'" or "company_name~='Acme'") |
fields | string | No | Comma-separated list of field names to include in the results |
page | string | No | Page number for paginated results (starting from 0) |
limit | string | No | Maximum number of records to return per page |
| Parámetro | Tipo | Descripción |
|---|
records | json | Array of matching records with their field values |
totalCount | number | Total number of matching records |
page | number | Current page number |
limit | number | Records per page |
Select record IDs matching a SQL WHERE clause from an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts", "contacts.employees") |
where | string | Sí | SQL WHERE clause using database column names (e.g., "summary like '%new%'" or "assigned_person='John Doe'") |
| Parámetro | Tipo | Descripción |
|---|
recordIds | array | Array of record IDs matching the query |
totalCount | number | Total number of matching records |
Update an existing record in an Agiloft table.
| Parámetro | Tipo | Obligatorio | Descripción |
|---|
instanceUrl | string | Sí | Agiloft instance URL (e.g., https://mycompany.agiloft.com\) |
knowledgeBase | string | Sí | Knowledge base name |
login | string | Sí | Agiloft username |
password | string | Sí | Agiloft password |
table | string | Sí | Table name (e.g., "contracts", "contacts.employees") |
recordId | string | Sí | ID of the record to update |
data | string | Sí | Updated field values as a JSON object (e.g., {"status": "Active", "priority": "High"}) |
| Parámetro | Tipo | Descripción |
|---|
id | string | ID of the updated record |
fields | json | Updated field values of the record |