# Get Incident Progress Trail By Number — TOPdesk

> Get incident progress trail by incident number. See the documentation

- Key: `topdesk-get-incident-progress-trail-by-number`
- Type: Action (Read-only)
- Version: 0.0.1
- App: TOPdesk (`topdesk`) — https://pipedream.com/apps/topdesk.md
- This page (HTML): https://pipedream.com/apps/topdesk/actions/get-incident-progress-trail-by-number
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/topdesk/actions/get-incident-progress-trail-by-number/get-incident-progress-trail-by-number.mjs

## Description

Get incident progress trail by incident number. [See the documentation](https://developers.topdesk.com/explorer/?page=incident#/progress%20trail%20%2F%20actions%20%2F%20requests/getIncidentProgressTrailByNumber)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `incidentNumber` | `string` | Yes | The number of the incident Options are loaded from the connected account. |
| `maxResults` | `integer` | No | Maximum number of progress trail entries to return |
| `inlineImages` | `boolean` | No | Whether inline images should be returned |
| `forceImagesAsData` | `boolean` | No | Whether imageData should be forced to be returned as Base64 inline images instead of a URL. Only taken into account when inlineImages is true. |
| `nonApiAttachmentUrls` | `boolean` | No | Whether links to attachments and bigger versions of inline images should be returned in a format that can be used by a browser (with cookie authentication) instead of by an API user |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "topdesk",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "topdesk-get-incident-progress-trail-by-number",
  arguments: {
    incidentNumber: "Incident Number",
    maxResults: 10,
  },
})
```

**TypeScript**

```ts
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: "topdesk-get-incident-progress-trail-by-number",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    topdesk: { authProvisionId: "apn_xxxxxxx" },
    incidentNumber: "Incident Number",
    maxResults: 10,
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "topdesk-get-incident-progress-trail-by-number",
    "configured_props": {
      "topdesk": { "authProvisionId": "apn_xxxxxxx" },
      "incidentNumber": "Incident Number",
      "maxResults": 10
    }
  }'
```

---

- App: https://pipedream.com/apps/topdesk.md · All apps: https://pipedream.com/apps
