AlmondTill/G3N API

On this page

exportJobs

query · in the family Export job

What it does

Your background exports — the exports you started, newest first, with their progress and outcome.

The caller's org-group family's ACTIVE LISTING of ExportJobs — doomed records DROP from listings. PAGINATED: limit clamps to [1, 200], default 100; nextToken = the prior page's cursor, verbatim — opaque + tenant-bound (a malformed or foreign token → VALIDATION/INVALID). Walk until nextToken is null (a page may hold fewer than limit — doomed drop per page).

What happens

Reads only — changes nothing. Cancelled, timed-out and failed exports drop from the list but stay readable one at a time.

Who may call it

Capability area: Reading your records — Looking up and listing the records of your organization.

Arguments

NameTypeRequiredNotes
limitIntnoHow many records to answer at most; a page may hold fewer.
nextTokenStringnoThe cursor from the previous page, passed back exactly as received.

Returns

ExportJobPage ExportJobPage! — One page of the exportJobs listing — the records + the opaque resume cursor.

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 ExampleExportJobs($limit: Int) {
  exportJobs(limit: $limit) {
    items {
      id
      sysId
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      userId
      sessionId
      planJson
      words
      format
      reportJson
      stepsDone
      examined
      partCount
      rowCount
      bytes
      partial
      fileKey
      fileName
      fileTtl
      startedAt
      finishedAt
      problem
      sfExecutionArn
    }
    nextToken
  }
}

Variables:

{
  "limit": 1
}

Example response

{
  "data": {
    "exportJobs": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "sysId": "EX-EXMP-0000-000F",
          "type": "ExportJob",
          "caption": "Blue jeans",
          "status": "queued",
          "parentId": "01900000-0000-7000-8000-065235280000",
          "rootId": "01900000-0000-7000-8000-a093dd800000",
          "createdAt": "2027-01-31T00:00:00.000Z",
          "updatedAt": "2027-01-31T00:00:00.000Z",
          "revisionNum": 1,
          "revision": "01900000-0000-7000-8000-b7960e180000",
          "userId": "01900000-0000-7000-8000-11f967df0000",
          "sessionId": "01900000-0000-7000-8000-be25a35a0000",
          "planJson": "<plan json>",
          "words": "<words>",
          "format": "<format>",
          "reportJson": "<report json>",
          "stepsDone": 1,
          "examined": 1,
          "partCount": 1,
          "rowCount": 1,
          "bytes": 1,
          "partial": true,
          "fileKey": "<file key>",
          "fileName": "Blue jeans",
          "fileTtl": 1,
          "startedAt": "2027-01-31T00:00:00.000Z",
          "finishedAt": "2027-01-31T00:00:00.000Z",
          "problem": "<problem>",
          "sfExecutionArn": "<sf execution arn>"
        }
      ],
      "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