HaloITSM v2

Provides integration with HaloITSM, an IT service management platform for running a service desk, through the Halo REST API, which HaloITSM shares with HaloPSA and HaloCRM. Use this Node to read, create, update and delete tickets, ticket actions, users, customers, sites, assets, knowledge base articles, suppliers, contracts and invoices, and to list agents, statuses, ticket types and teams in your Workflows.

Revision History

0.0.0.1 - Initial release.

Connection

Use this Connection to store your Halo API URLs and the client credentials of a Halo API application. The Node requests access tokens automatically, so there is no sign-in step.

Property Type Description
ResourceServerUrl String Required Halo API Resource Server URL, for example https://yourtenant.haloitsm.com/api.
AuthServerUrl String Required Halo API Authorisation Server URL, for example https://yourtenant.haloitsm.com/auth.
Tenant String Optional hosted tenant ID, when your Halo instance requires it on token requests. Leave it blank otherwise.
ClientId String Required client ID of the Halo API application.
ClientSecret Masked Required client secret of the Halo API application.
Scope String Required space-separated token scopes. Defaults to all, which grants every area the API application allows.
TimeoutSeconds Integer Per-request timeout in seconds, from 1 to 600. Defaults to 30.

Both URLs must be absolute https URLs.

Setup Notes

  1. In Halo, open Configuration → Integrations → Halo API and copy the Resource Server URL and the Authorisation Server URL. If your hosted instance needs a tenant ID on token requests, copy it too.
  2. Create a Halo API application that authenticates with a client ID and secret, and choose the agent the application acts as.
  3. Grant the application permission to the areas your Workflows use, then save it and copy its client ID and client secret.
  4. Create a Connection for HaloITSM and enter ResourceServerUrl, AuthServerUrl, ClientId and ClientSecret, plus Tenant when your instance needs it.
  5. Keep Scope as all, or enter the narrower Halo scopes your Workflows need, separated by spaces.
  6. Test the Connection.
  7. Select a Method and its resource template, then map the fields needed by your Workflow.

The permissions of the API application's agent also limit what the Node can read and change, whatever Scope allows. If Halo rejects the token request, the error shows the HTTP status and, where Halo sends one, a standard OAuth error code such as invalid_client. Check ClientId, ClientSecret, Tenant and Scope.

This Node runs on the Cloud Cluster and on local Clusters. Use a local Cluster when your Halo installation is not reachable from the internet.

Methods

Select a resource template for the Method you want to use. The template supplies OperationId and describes its Options, Items and Response fields.

Resource Get List Query Create Update Delete
Tickets, Users, Clients, Sites, Assets, KB Articles, Suppliers, Contracts, Invoices Yes Yes Yes Yes Yes Yes
Actions (ticket notes, emails and time entries) Yes Yes, for one ticket No Yes Yes Yes
Agents, Statuses, Ticket Types, Teams No Yes No No No No

Clients are Halo customers.

Get

Reads one record, with its details, by its ID.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the Get template.
Options Object The required id of the record, as a positive whole number.
Return Type Description
Response Array One row with the record's fields as returned by Halo. A record that does not exist returns no rows.

List

Lists every record of the selected resource. Records are returned in ascending id order, except Actions, which Halo returns newest first.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the List template.
Options Object Not used, except for Actions, which require the ticket_id of the ticket whose actions to list, as a positive whole number.
Return Type Description
Response Array One row per record, with the fields returned by Halo. A resource with no records returns no rows.

Query

Finds records that match the filters you supply. Supply at least one filter; use List to read a whole resource.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the Query template.
Options Object Filters for the selected resource, using Halo's names. See the filter table below.
Return Type Description
Response Array One row per matching record, with the fields returned by Halo. A successful query with no matching records returns no rows.
Resource Filters
Tickets search, client_id, site_id, user_id, agent_id, status_id, requesttype, team, open_only
Users search, client_id, site_id
Clients, KB Articles, Suppliers search
Sites search, client_id
Assets search, client_id, site_id, user_id, assettype_id
Contracts search, client_id, site_id
Invoices search, client_id, site_id, ticket_id

client_id is the customer ID. ID filters take whole numbers. On Tickets, requesttype (ticket types) and team take one or more IDs as comma-separated text, such as 1,3, and open_only takes true or false.

Each Query template fills in one filter with an example value so that the template runs. Replace it with your own value, or clear it when you supply another filter.

Create

Creates one record for each input item.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the Create template.
Items Array Required stream of records to create, using Halo's field names. Do not set id; use Update to change an existing record. Which fields are required depends on your Halo configuration.
Return Type Description
Response Array One result per input item containing the record returned by Halo, including its new id, and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Update

Updates the record each input item names by id. Only the fields you supply are changed.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the Update template.
Items Array Required stream of objects, each with the id of the record to update, as a positive whole number, and the fields to change.
Return Type Description
Response Array One result per input item containing the updated record returned by Halo and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Delete

Deletes the record each input item names by id.

Parameter Type Description
Connection Connection HaloITSM Connection used to authenticate the request.
OperationId String Resource selected by the Delete template.
Items Array Required stream of objects, each with the id of the record to delete, as a positive whole number.
Return Type Description
Response Array One result per input item containing the deleted record returned by Halo and Flowgear.IsSuccess, Flowgear.Message and Flowgear.Request.

Usage Notes

  • Options names that the selected Method and resource do not support are rejected, so a misspelt filter never returns the whole resource.
  • Each Update or Delete item names its own record by id, so one Step can change several records.
  • Check Flowgear.IsSuccess for every result. An item with a missing or invalid id, or a record Halo rejects or cannot find, returns a failed row with the error in Flowgear.Message, such as Record not found, and later items continue. A failure on the first item, authentication failures, Halo server errors and network failures fail the Step.
  • Error messages come from Halo, for example Impact is mandatory. When Halo returns no error text, the message shows the HTTP status.
  • Lists of text or IDs in Halo records, such as child_ticket_ids, are shown and returned as comma-separated text. Quote values that contain commas, and an empty string is an empty list.
  • Templates show each record's fields and the fields of objects directly inside it. Deeper objects, and fields Halo returns without declaring them, are not shown in templates but are still returned and can still be sent.
  • Halo allows 700 requests per 300 seconds for each tenant. When Halo limits the request rate, the Node waits and retries. If the limit continues, the Step fails.
  • Create and Update requests are never resent after a timeout or server error. Check Halo before you run a failed write again, because the change may already have been made.
  • A ticket category_1 must be a leaf category. Halo reports a parent category as Category is mandatory; supply the full path, such as Parent>Child>Leaf.
  • Creating a contract fails with Please choose a labour period until billingperiod is supplied.

Examples

Create a ticket

Select the Create template Tickets and supply one object per ticket in Items:

{
  "summary": "Printer offline on floor 2",
  "details": "The shared printer does not respond.",
  "client_id": 12,
  "tickettype_id": 1,
  "category_1": "Hardware>Printers>Offline"
}

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

Find a customer's open tickets

Select the Query template Tickets and supply the following Options object:

{
  "client_id": 12,
  "open_only": true
}

Each row in Response is one open ticket.

Known Issues

  • Attachments, quotations, sales orders, projects, appointments, reports and webhooks are not available.
  • Halo automation rules can create tickets of their own in response to new tickets, for example a linked problem ticket, or mass incident tickets when several tickets are created within about a minute. Mass incident tickets mention the new tickets only in details, so a search for your tickets' text does not find them.

See also