Skip to main content
Retrieve job works associated with a provider connection. Job works represent individual client/tax preparation entries that were created as part of an import job. You can filter by specific job work IDs, connection job IDs, or work IDs.

Arguments

connectionId
ID!
required
The ID of the provider connection to query job works from. This is the connection ID returned from startProviderConnection.
filters
JobWorkFilters
Optional filters to narrow down the job works returned.
sortBy
SortBy
Optional sorting configuration.
offset
Int
Number of records to skip for pagination. Defaults to 0.
limit
Int
Maximum number of records to return. Use with offset for pagination.

Returns

id
ID!
The unique identifier of the job work.
createdAt
Date!
Timestamp when the job work was created.
updatedAt
Date!
Timestamp when the job work was last updated.
workspaceId
ID!
The workspace ID this job work belongs to.
workId
ID!
The work ID this job work references.
connectionJobId
ID!
The connection job ID this job work belongs to.
work
Work!
The associated work (client/tax preparation) details.
jobWorkArtifacts
[JobArtifact!]!
List of artifacts attached to this job work. See get-job-work-artifacts for detailed artifact status information.

Example: Get Job Work by ID

Example: Get All Job Works for a Connection Job

Query all job works that belong to a specific connection job:
The jobWorks field on a connection returns all job works across all connection jobs for that connection. Use the connectionJobIds filter to narrow down to a specific import batch.

Troubleshooting

Problem: No job works returned despite creating them Solutions:
  • Verify you’re querying the correct connection ID
  • Check that the job work IDs in your filter are correct
  • Ensure the job works were successfully created (check for errors in the createJobWorks response)
  • Confirm you have access to the workspace containing the connection
Problem: Missing artifact information Solutions:
  • Artifacts may not have been created yet - verify with createJobWorkArtifacts
  • Include the jobWorkArtifacts field in your query to fetch artifact details
  • Check artifact status to see if files are still being processed