List Assets

halopsa.list_assets
ActionBusiness appsconnection required

Calls the HaloPSA API with the connection's credentials.

List assets, optionally narrowed to a client, site or asset type.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
HaloPSA
Secret shape
{"client_id": "…", "client_secret": "…"} or {"client_id": "…", "refresh_token": "…"}
Config it needs
base_url, auth_url, tenant, scope
Resolved by
config.connection_id, else node.connection_id

Configuration

9 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
search
Only return records matching this search string.
stringNo——printer
client_id
Only return records belonging to this client, by the client's numeric id.
stringNo——12
site_id
Only return assets at this site, by the site's numeric id.
stringNo——7
assettype_id
Only return assets of this asset type, by its numeric id.
stringNo——4
include_inactive
Include inactive records in the response as well as active ones.
booleanNofalse——
order
Name of the field to order the results by, as Halo names it.
stringNo——id
orderdesc
Order the results descending rather than ascending.
booleanNofalse——
page_size
How many records one page holds; Halo allows at most 100. Setting this or the page number turns pagination on.
numberNo—1–100—
page_no
Which page of results to return; the first page is 1.
numberNo—≥ 1—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "assettype_id": "4",
  "client_id": "12",
  "include_inactive": false,
  "order": "id",
  "orderdesc": false,
  "search": "printer",
  "site_id": "7"
}

Output

One shape.

result

FieldTypeExample
items
The records Halo returned on this page.
array—
count
How many records this response carried.
number—
record_count
How many records match in total, as Halo reported; equal to count on a listing that is not paginated.
number—
{
  "count": 0,
  "items": [],
  "record_count": 0
}

See List Assets run in a workflow.

In a technical demo we add the HaloPSA connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.