Skip to content

Depot sales workflow runs

Registers the opportunity workflow run log on the psa mux (msp only, like MountSales).

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETcrm:readmsp facemspIdempotent

Source: [object Object]

listOpportunityWorkflowRuns lists what opportunity workflows did, newest first, optionally for one workflow, one deal, and some outcomes.

NameInTypeRequiredDescription
opportunityquerystringNo
outcomequerystringNo
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
workflowquerystringNo
StatusBodyDescription
200application/json, PagedResultOppWorkflowRunViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold crm:read.
404application/problem+json, ProblemDetailsNo resource matches.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsSales is not available on this server.

200 response body

FieldTypeDescription
itemsrequiredarray of OppWorkflowRunView
items[].errorrequiredstring
items[].occurredAtrequiredstring (date-time)
items[].opportunityIdstring or null
items[].opportunityNamestring or null
items[].outcomerequiredstring
items[].pathrequiredany

Arbitrary JSON.

items[].publicIdrequiredstring
items[].reasonstring or null
items[].triggerstring or null
items[].workflowIdrequiredstring
items[].workflowNamerequiredstring
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/sales/workflow-runs?opportunity=<opportunity>&outcome=<outcome>&page=0&pageSize=0&workflow=<workflow>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.