Skip to main content

routePlanningRuns

Requires permission visits:journey-plan:manage.

Lists recent planning runs, newest first, showing only the reps in your team. Requires permission to manage journey plans.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query RoutePlanningRuns {
routePlanningRuns {
id
actorName
actorUserId
endDate
finishedAt
isPreview
reps {
repName
status
added
addedMissed
addedNewCustomers
addedVisitIds
}
}
}

Response:

{
"data": {
"routePlanningRuns": [
{
"id": "id",
"actorName": "string",
"actorUserId": "id",
"endDate": "2025-01-15T00:00:00Z",
"finishedAt": "2025-01-15T00:00:00Z",
"isPreview": true,
"reps": [
{
"repName": "string",
"status": "FAILED",
"added": 0,
"addedMissed": 0,
"addedNewCustomers": 0,
"addedVisitIds": [
"id"
]
}
]
}
]
}
}
routePlanningRuns(
limit: Int
): [RoutePlanningRun!]!

Arguments​

routePlanningRuns.limit ● Int scalar​

How many runs to return, at most 50. Omit it for 20.

Type​

RoutePlanningRun object​

A planning run, or a preview of one.