Agile CRM v2

Provides integration with Agile CRM, a customer relationship management platform for sales, marketing and service teams, through the Agile CRM REST API. Use this Node to get, list, search, create, update and delete contacts, companies, deals, tasks, notes and events, to manage contact tags, lead scores and star ratings, and to list deal tracks in your Workflows.

Revision History

0.0.0.2 - Initial release.

Connection

Use this Connection to store your Agile CRM account subdomain, login email and REST API key.

Property Type Description
Domain String Required account subdomain only, for example acme for acme.agilecrm.com. A full host name or URL is rejected.
Email String Required login email address of the Agile CRM user that owns the API key.
ApiKey Masked Required REST API key of that user. Must be a single line.
TimeoutSeconds Integer Per-request timeout in seconds, from 1 to 300. The default is 30.

Setup Notes

This Node runs on the Cloud Cluster.

  1. In Agile CRM, open Admin Settings → API & Analytics → API Key and copy the REST API key.
  2. Create a Connection for Agile CRM and enter Domain, Email and ApiKey.
  3. Test and save the Connection.

A wrong API key and a subdomain that does not exist both return Agile CRM rejected the credentials (HTTP 401). Check the connection Domain, Email and ApiKey., so check Domain as well as Email and ApiKey when the test fails. The API key does not expire. If you regenerate it in Agile CRM, update the Connection.

Methods

Select a template for the Method you want to use. The template supplies OperationId and describes its Options, Items and Response fields. Fields that Agile CRM requires are marked Required in the template.

Method Templates
Get Contact or Company, Contact by Email, Contact by Phone Number, Deal, Task
List Contacts, Companies, Deals, Tasks, Contact Notes, Deal Notes, Tracks
Search Contacts and Companies, Events
Create Contact or Company, Deal, Task, Note, Event
Update Contact or Company Properties, Contact Lead Score, Contact Star Value, Add Contact Tags, Remove Contact Tags, Deal, Task, Event
Delete Contact or Company, Deal, Task, Event, Contact Note

Get

Reads one record by its ID, email address or phone number.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the get template.
Options Object The required id, email or phone_number of the record, depending on the template. Email addresses are case-sensitive.
Return Type Description
Response Object The requested record. If Agile CRM has no matching record, the Step fails with a message that starts Agile CRM found no record for.

List

Lists every record for the selected template.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the list template.
Options Object Optional filters for Tasks: criteria (CATEGORY, STATUS or PRIORITY), type, owner and pending. Optional sort field global_sort_key for Companies; prefix it with - for descending order. Contact Notes require contact_id, and Deal Notes require deal_id.
Return Type Description
Response Array One row per record, with the fields returned by Agile CRM. A successful list with no records returns no rows.

With no filters, a list returns the whole collection. For Tasks, type filters on its own; you do not need to set criteria with it.

Finds contacts, companies or events that match the values you supply.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the search template.
Options Object Contacts and Companies: the required search text q and the required type, PERSON or COMPANY. Events: the required start and end of the time range, as whole numbers in Unix epoch seconds.
Return Type Description
Response Array One row per matching record. A successful search with no matches returns no rows.

Search templates fill the required filters with example values. Replace them with your own values. A required filter that is empty or null fails the Step with a message naming it.

Create

Creates one record for each input item.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the create template.
Items Array Required stream of records to create, using Agile CRM's field names.
Return Type Description
Response Array One result per input item containing the record returned by Agile CRM, including its new id, and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

To create a company instead of a person, set type to COMPANY. If a Create Deal item contains an id, Agile CRM updates that deal instead of creating one.

Update

Updates the record that each input item names by id.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the update template.
Items Array Required stream of objects, each with the id of the record to update and the fields to change.
Return Type Description
Response Array One result per input item containing the updated record returned by Agile CRM and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request. Remove Contact Tags returns tags, the tags left on the contact.

Deal and Task change only the fields you supply. Event also requires title, start and end. Contact or Company Properties adds or replaces the properties you supply. Use Contact Lead Score, Contact Star Value (0 to 5), Add Contact Tags and Remove Contact Tags for those values.

Delete

Deletes the record that each input item names.

Parameter Type Description
Connection Connection Agile CRM Connection used to authenticate the request.
OperationId String Operation selected by the delete template.
Items Array Required stream of objects, each with the id of the record to delete. Contact Note items carry contact_id and note_id instead.
Return Type Description
Response Array One result per input item containing Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Usage Notes

  • Each Update and Delete item names its own record, so one Step can change several records. Record IDs are whole numbers or text made of digits.
  • Check Flowgear.IsSuccess for every result. After the first item, an item with a missing or invalid ID, or a record that Agile CRM rejects, returns a failed row with the reason, and later items continue. A failure on the first item, rejected credentials, timeouts and network failures fail the Step.
  • A write that times out is not sent again. Check Agile CRM before you run it again, because the change may already have been made.
  • Contact and company fields are in the properties list, as objects with type (SYSTEM or CUSTOM), name, subtype and value. For example, { "type": "SYSTEM", "name": "email", "subtype": "work", "value": "jane@example.com" }. Property names are case-sensitive.
  • Dates such as task due, deal close_date and event start and end are Unix epoch seconds.
  • Lists of tags or IDs, such as tags, contacts, contact_ids and deal_ids, are shown and returned as comma-separated text. Quote values that contain commas, and an empty string is an empty list. A JSON array is also accepted as input.
  • Fields mapped as null are ignored. You cannot clear a field by mapping null.
  • Rows can include fields that the template does not describe, such as deal products. These fields are returned as Agile CRM sends them.
  • Options accepts only the fields listed in the selected template. The Node handles paging, so page_size and cursor cannot be set.
  • Agile CRM limits how many requests can be made in a short time. When it does, the Node waits and retries. If the limit continues, a read or the first item of a change fails the Step, and a later item returns a failed row asking you to retry later.

Examples

Create a task

Select the Create template Task and supply one object per task in Items:

{
  "subject": "Call back about renewal",
  "type": "CALL",
  "priority_type": "HIGH",
  "due": 1798761599,
  "contacts": "5629499534213120"
}

Check each result's Flowgear.IsSuccess and keep its id to update the task later.

Search contacts

Select the Search template Contacts and Companies and supply the following Options object:

{
  "q": "Smith",
  "type": "PERSON"
}

Each row in Response is one matching person.

Known Issues

  • Agile CRM treats deleting a record that does not exist as a success, so Flowgear.IsSuccess is true in that case too.
  • Campaigns, documents, help desk tickets, users, dynamic filters, contact owner changes and deal track editing are not available.

See also