View as Markdown
Autotask PSA icon

Autotask PSA ACTION

Get Companies Count

Get count of companies in Autotask PSA. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Autotask PSA account once, then configure and run Get Companies Count from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "autotask_psa-get-companies-count",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    autotask_psa: { authProvisionId: "apn_xxxxxxx" },
    filter: "Filter",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Companies Count inputs
Property Type Description
filter Filter object
POST body for entity query: filter (conditions array); optional IncludeFields, MaxRecords, etc. Omitting filter can return a 500 error. An empty filter array returns no records. If you type filter as text in the object UI, use valid JSON (it is parsed before the request). Operators: eq, noteq, gt, gte, lt, lte, beginsWith, endsWith, contains, exist, notExist, in, notIn; group with and/or and nested items. For UDFs add "udf": true on the filter object (one UDF per request). Include Id in IncludeFields when paginating past 500 rows. Example: {"MaxRecords":100,"IncludeFields":[],"filter":[{"field":"companyName","op":"eq","value":"Acme Corp"}]}. Basic queries, Advanced features.
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
autotask_psa-get-companies-count
Version
0.0.1
App
Autotask PSA
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes