Queue Administration
- Get Offline Job Object Definition
- Query and List Offline Jobs
- Query and List Offline Jobs (Legacy)
- Get Offline Job
- Prioritize a Job
- Cancel a Job
Queue administration lets you get a list of all offline jobs queued to run in your company.
You can also see a history of jobs to determine if an important offline job has been completed or if there were complications. If you have the right subscription (Premium Level of Service at Silver level or higher) you can cancel offline jobs or prioritize important jobs to the top of the queue.
An offline job refers to any sort of data action that you choose to process offline in the background while you continue working. Offline jobs can include CSV imports, reports, contract invoices, check runs, Data Delivery Service jobs, and more. Smart Events are not currently supported.
Usage information for queue administration is available in the Sage Intacct product help.
Get Offline Job Object Definition
lookup
List all the fields and relationships for the offline job object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
Query and List Offline Jobs
query
List the job ID, job type, and time queued for each offline job:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
filter
Fields
Name | Required | Type | Description |
---|---|---|---|
TIMEQUEUED | Optional | string | Date that the job was queued in format mm/dd/yyyy |
STATE | Optional | string | Status of the job. For active jobs, use Q for Queued or T for In progress/In Transit. For processed jobs, use S for Delivered, D for Failed, R for Deferred, or C for Cancelled. |
JOBTYPE | Optional | string | Job type. Use DDS job , Asynchronous API requests , CSV import , Scheduled memorized report , Scheduled financial report , Update report , Process & store report , Scheduled report , Email report , Process & store report group , Scheduled report group , Recurring consolidation , Offline consolidation , Run action , Contract invoices , Project invoices , Check run , Confirm check run , Void check run , or Wells Fargo payments . For more information about these, see queue administration in the Sage Intacct product help. |
Response
JOBQUEUERECORD
The above function returns data structured like this:
Parameters
JOBID | string | Unique identifier for the job. |
TIMEQUEUED | string | Date that the job was queued in ISO 8601 date time format. |
JOBTYPE | string | Job type. One of DDS job , Asynchronous API requests , CSV import , Scheduled memorized report , Scheduled financial report , Update report , Process & store report , Scheduled report , Email report , Process & store report group , Scheduled report group , Recurring consolidation , Offline consolidation , Run action , Contract invoices , Project invoices , Check run , Confirm check run , Void check run , or Wells Fargo payments . For more information about these, see queue administration in the Sage Intacct product help. |
ACTION | string | Either the name of the report or record affected by the job, or the action performed by the job. |
DETAILS | string | Additional details of the job, which might include the record information, report information, send-to email address, or more. |
USERS | string | User who submitted the job. |
STATE | string | Status of the job. For active jobs, Queued or In Progress . For processed jobs, Delivered , Failed , Deferred , or Cancelled . |
ACTIVETIME | string | Total time the job took from the start of processing to completion of processing in HH:mm:ss format (called active time in the UI). |
WAITINQUEUE | string | Time that the job has been waiting in the queue in HH:mm:ss format. |
TIMESTARTED | string | Date and time the job started processing in ISO 8601 date time format. |
Query and List Offline Jobs (Legacy)
readByQuery
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
fields | Optional | string | Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value. |
query | Required | string | SQL-like query based on fields on the object. The following operators are supported: < , > , >= , <= , = , like , not like , in , not in , IS NOT NULL , IS NULL , AND , OR . Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli' ). Joins are not supported. Note: like , not like , IS NOT NULL , and IS NULL are not supported for OBJECTTYPE and OBJECTKEY . |
pagesize | Optional | integer | Custom page size between 1 and 1000 items (Default: 100 ) |
query
Fields
Name | Required | Type | Description |
---|---|---|---|
TIMEQUEUED | Optional | string | Date that the job was queued in format mm/dd/yyyy |
STATE | Optional | string | Status of the job. For active jobs, use Q for Queued or T for In progress/In Transit. For processed jobs, use S for Delivered, D for Failed, R for Deferred, or C for Cancelled. |
JOBTYPE | Optional | string | Job type. Use DDS job , Asynchronous API requests , CSV import , Scheduled memorized report , Scheduled financial report , Update report , Process & store report , Scheduled report , Email report , Process & store report group , Scheduled report group , Recurring consolidation , Offline consolidation , Run action , Contract invoices , Project invoices , Check run , Confirm check run , Void check run , or Wells Fargo payments . For more information about these, see queue administration in the Sage Intacct product help. |
Response
jobqueuerecord
The above function returns data structured like this:
Parameters
JOBID | string | Unique identifier for the job. |
TIMEQUEUED | string | Date that the job was queued in ISO 8601 date time format. |
JOBTYPE | string | Job type. One of DDS job , Asynchronous API requests , CSV import , Scheduled memorized report , Scheduled financial report , Update report , Process & store report , Scheduled report , Email report , Process & store report group , Scheduled report group , Recurring consolidation , Offline consolidation , Run action , Contract invoices , Project invoices , Check run , Confirm check run , Void check run , or Wells Fargo payments . For more information about these, see queue administration in the Sage Intacct product help. |
ACTION | string | Either the name of the report or record affected by the job, or the action performed by the job. |
DETAILS | string | Additional details of the job, which might include the record information, report information, send-to email address, or more. |
USERS | string | User who submitted the job. |
STATE | string | Status of the job. For active jobs, Queued or In Progress . For processed jobs, Delivered , Failed , Deferred , or Cancelled . |
ACTIVETIME | string | Total time the job took from the start of processing to completion of processing in HH:mm:ss format (called active time in the UI). |
WAITINQUEUE | string | Time that the job has been waiting in the queue in HH:mm:ss format. |
TIMESTARTED | string | Date and time the job started processing in ISO 8601 date time format. |
Get Offline Job
read
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
keys | Required | string | Comma-separated list of job JOBID to get |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
Prioritize a Job
promote
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
keys | Required | string | Comma-separated list of job JOBID to move to the top of the queue |
Cancel a Job
cancel
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Use JOBQUEUERECORD |
keys | Required | string | Comma-separated list of job JOBID to cancel |