Post
/softera/softeraEInvoice/v2.0/companies({companyId})/jobQueueEntries
Creates a job queue entry. status, userID and scheduled are set by Business Central and cannot be sent.
Security
OAuth
FlowClient Credentials
Token URLhttps://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token
Scopes:
https://api.businesscentral.dynamics.com/.defaultGrants the permissions assigned to the Microsoft Entra ID application in Business Central
Path parameters
companyId
string (uuid) Required
GUID for targeted Company
Example54c4066e-2b2b-4118-ac75-7dfea25be205
Body parameters
recurringCodeunit
Recurring codeunit every 60 minutes
{
"objectTypeToRun": "Codeunit",
"objectIDToRun": 70590700,
"description": "E. sąskaitų siuntimas",
"jobQueueCategoryCode": "ESF",
"earliestStartDateTime": "2025-03-18T06:00:00Z",
"recurringJob": true,
"noOfMinutesBetweenRuns": 60
}object
Writable fields of a job queue entry.
objectTypeToRun
string
Valid values[
"Report",
"Codeunit"
]
ExampleCodeunit
objectIDToRun
integer
Minimum0
Example70590700
description
string
Max length250
ExampleE. sąskaitų siuntimas
jobQueueCategoryCode
string
Max length10
ExampleESF
earliestStartDateTime
string (date-time)
Example2025-03-18T06:00:00Z
recurringJob
boolean
Exampletrue
noOfMinutesBetweenRuns
integer
Minimum0
Example60
errorMessage
string
Max length2048
Example
Responses
201
Created
Headers
Location
string (uri)
URL of the created job queue entry
object
id
string (uuid)
status
string
Valid values[
"Ready",
"In Process",
"Error",
"On Hold",
"Finished",
"On Hold with Inactivity Timeout",
"Waiting"
]
ExampleReady
userID
string
Max length65
ExampleVARDAS.PAVARDE
objectTypeToRun
string
Valid values[
"Report",
"Codeunit"
]
ExampleCodeunit
objectIDToRun
integer
Minimum0
Example70590700
objectCaptionToRun
string
Max length250
ExampleESF Send Documents
description
string
Max length250
ExampleE. sąskaitų siuntimas
jobQueueCategoryCode
string
Max length10
ExampleESF
userSessionStarted
string (date-time)
earliestStartDateTime
string (date-time)
Example2025-03-18T06:00:00Z
scheduled
boolean
recurringJob
boolean
Exampletrue
noOfMinutesBetweenRuns
integer
Minimum0
Example60
errorMessage
string
Max length2048
Example
lastModifiedDateTime
string (date-time)
400
Bad Request
object
error
object
code
string
ExampleBadRequest
message
string
ExampleThe field Customer No. of table Sales Header contains a value (P9999999) that cannot be found in the related table (Customer). CorrelationId: fc7b9039-73d9-48d2-a9d3-9a8e0f8b91da.
401
Unauthorized
Headers
WWW-Authenticate
string
object
error
object
code
string
Default"Unauthorized"
message
string
Default"The credentials provided are incorrect"