# transactionRouting

Audience: Programmer

The routing status of the events a mutation published, by the `transactionID` the mutation returned.

The routing status of the events a mutation published, by the `transactionID`
the mutation returned. Only events of the caller's tenants are returned.

Compare `entries` with the mutation's `eventCount`:
- `eventCount: 0`: nothing was published, there is nothing to route.
- fewer entries than `eventCount`: routing is not complete, ask again, but
  give up after a deadline: an entry can be missing for good.
- as many entries as `eventCount`: routing is complete. Each entry's targets
  say what happened; `workflowExecutions(where: {transactionID})` lists the
  executions the transaction started.

Entries are kept for 72 hours.

**Served by:** [workflow](https://docs.pyck.cloud/latest/api/services/workflow.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `transactionID` | ID! |  |  |

## Returns

[TransactionRouting](https://docs.pyck.cloud/latest/api/types/transactionrouting.md)!

## Example

Returns the routing status of the events that a mutation published, with one entry for each event the router has settled. Pass the transactionID that the mutation returned.

```graphql
query GetTransactionRouting($transactionID: ID!) {
  transactionRouting(transactionID: $transactionID) {
    entries {
      eventID
      outcome
      recordedAt
      sequence
      targets {
        error
        kind
        reason
        runID
        signal
        workflow
        workflowID
      }
      tenantID
    }
    transactionID
  }
}
```

**Variables**

```json
{
  "transactionID": "<transaction ID>"
}
```
