On this page
fillDrafts
query · in the family Reading your records
What it does
Your own wizard drafts, newest first — being made, ready, or failed — one page at a time.
YOUR wizard drafts, NEWEST first: status filters by drafting | ready | failed (abandoned drafts drop from the list and stay readable one at a time); limit 1..200 (default 50); nextToken the prior page's cursor VERBATIM (opaque, tenant-bound). A page may be SHORT (the owner/status filter rides per id page) — walk until nextToken is null. Requires authentication (user sessions).
What happens
Reads only — changes nothing. Abandoned drafts drop from the list but stay readable one at a time; a page may come back short, so keep walking until there is no next page.
Who may call it
Capability area: Reading your records — Looking up and listing the records of your organization.
- Owner
- System Administrator
- Manager
- Associate Manager
- Warehouse Associate
- Sales Associate
- An API key whose scope allows
api:fillDrafts
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
status | FillDraftStatus | no | No further notes. |
limit | Int | no | How many records to answer at most; a page may hold fewer. |
nextToken | String | no | The cursor from the previous page, passed back exactly as received. |
Returns
FillDraftPage FillDraftPage! — One page of YOUR wizard drafts, NEWEST first (the house page grammar). A page may be SHORT — the owner and status filters ride per id page; walk until nextToken is null.
This is a page: items holds the records and nextToken the cursor for the next page — pass it back verbatim until it is null. See paging.
Example request
query ExampleFillDrafts($status: FillDraftStatus) {
fillDrafts(status: $status) {
items {
id
sysId
type
caption
status
parentId
rootId
revision
revisionNum
createdAt
updatedAt
wizardType
brief
materialIds
filled
questions
advice
understood
turnCount
summary
summarizedThroughSeq
activeTurnId
activeTurnStartedAt
failReason
sfExecutionArn
startRequestId
startedAt
readyAt
takenAt
takenRef
expiresAt
}
nextToken
}
}
Variables:
{
"status": "drafting"
}
Example response
{
"data": {
"fillDrafts": {
"items": [
{
"id": "01900000-0000-7000-8000-37386ae00000",
"sysId": "FL-EXMP-0000-000F",
"type": "FillDraft",
"caption": "Blue jeans",
"status": "drafting",
"parentId": "01900000-0000-7000-8000-065235280000",
"rootId": "01900000-0000-7000-8000-a093dd800000",
"revision": "01900000-0000-7000-8000-b7960e180000",
"revisionNum": 1,
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"wizardType": "<wizard type>",
"brief": "<brief>",
"materialIds": [
"01900000-0000-7000-8000-a36392ca0000"
],
"filled": "<filled>",
"questions": [
"<questions>"
],
"advice": "<advice>",
"understood": "<understood>",
"turnCount": 1,
"summary": "<summary>",
"summarizedThroughSeq": 1,
"activeTurnId": "01900000-0000-7000-8000-770cb7810000",
"activeTurnStartedAt": "2027-01-31T00:00:00.000Z",
"failReason": "<fail reason>",
"sfExecutionArn": "<sf execution arn>",
"startRequestId": "01900000-0000-7000-8000-c154ec1d0000",
"startedAt": "2027-01-31T00:00:00.000Z",
"readyAt": "2027-01-31T00:00:00.000Z",
"takenAt": "2027-01-31T00:00:00.000Z",
"takenRef": "<taken ref>",
"expiresAt": 1
}
],
"nextToken": "<the cursor from the previous page>"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}
Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. (RATE_LIMIT)