Execute a Report v2
/jderest/v2/report/execute
Request
- application/json
-
jde-AIS-Auth(optional): string
Token
-
jde-AIS-Auth-Device(optional): string
Device Name
-
jde-AIS-MonitorOnStart(optional): boolean
Monitor on Start
-
jde-AIS-MonitorRequest(optional): string
Monitor RequestAllowed Values:
[ "monitorRequest", "monitorRequestIO" ]
object
-
biReportDeliveryTypes(optional):
array biReportDeliveryTypes
A list of delivery methods to use for an embedded BI Publisher report.
-
biReportLanguages(optional):
array biReportLanguages
A list of languages to produce for an embedded BI Publisher report. You can use EnterpriseOne supported language codes or special values listed in the allowed values list.
-
biReportOutputTypes(optional):
array biReportOutputTypes
A list of outputs to produce for an embedded BI Publisher report.
-
dataSelection(optional):
object DataSelection
Populate this input object to override data selection for this execution of the report.
-
dataSequence(optional):
object DataSequence
Populate this input object to override data sequence for this execution of the report.
-
deviceName(optional):
string
An identifier for the device making the service call. If not provided, the requesting IP address is used.
-
environment(optional):
string
Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
-
fireAndForget(optional):
boolean
Specify if this report request should run synchronously or if it should run asynchronously (fire and forget). A value of 'true' will run the report request asynchronously.
-
jasserver(optional):
string
The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
-
jdeDebugLog(optional):
boolean
A true value will produce a JDE log and a JDEDEBUG log for the report.
-
jdeLog(optional):
boolean
A true value will produce a JDE log for the report.
-
outputType(optional):
string
Allowed Values:
[ "FTP" ]
Complete if the report output will be sent to a third-party location. -
password(optional):
string
The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
-
pathExt(optional):
string
The directory on a third-party FTP server where you want the output to be sent.
-
poValues(optional):
array poValues
A set of processing option IDs and their values to use during report execution. You may either supply report interconnect values or processing option values, not both.
-
printOptions(optional):
object PrintOptions
Used to override the print options for a report.
-
psToken(optional):
string
Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
-
queueName(optional):
string
Specify a queue name to send to a diffrent job queue.
-
reportLoggingLevel(optional):
integer(int32)
A integer value of 0-6 to specify the level of logging in the JDEDEBUG log. Any value greater than zero will force the system to write both the JDE and JDEDEBUG logs.
-
reportName:
string
The name of the report to execute, for example R014021.
-
reportVersion(optional):
string
The version of the report to execute, for example XJDE0001. If a version is not provided, the default version of XJDE0001 will be used.
-
riValues(optional):
array riValues
The report interconnect values to be used during report execution. You may either supply report interconnect values or processing option values, not both. Dates must be in yyyyMMdd format. Utime Fields must be in yyyy-MM-dd'T'HH:mm:ss.SSSZ format.
-
role(optional):
string
The role to use for login. If not specified, the default role configured for the AIS Server will be used.
-
softCodingRecordKey(optional):
string
Specify the soft coding record to identify the third-party system.
-
token(optional):
string
The AIS token, which is required if other authentication methods are not being used.
-
username(optional):
string
JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
-
versionVariable(optional):
string
The Override Version if defined
-
viewType(optional):
string
Allowed Values:
[ "PDF", "CSV", "OSA" ]
Specify the output to send to the third-party system.
array
array
array
object
-
criteria:
array criteria
The data selection criteria.
object
-
orderByColumns:
array orderByColumns
The data sequence columns and order direction
array
-
Array of:
object POValue
A processing option value to use for this execution of the report.
object
-
numberCopies(optional):
integer(int32)
The number of copies to print.
-
orientation(optional):
integer(int32)
Allowed Values:
[ 1, 2 ]
The orientation to print the report. Use 1 for Portrait and 2 for Landscape -
osaInterfaceName(optional):
string
The OSA Inteface name to use for printing the report.
-
paperSource(optional):
integer(int32)
The paper source to use.
-
paperType(optional):
string
The paper type (for example 'LETTER') to use for the print job.
-
printerName(optional):
string
The printer (already configured as a printer in EnterpriseOne) to use to print the report.
-
printImmediate(optional):
boolean
Indicate true to send the report to the printer after completion.
-
printStyleSDT(optional):
integer(int32)
Allowed Values:
[ 1, 2, 3 ]
The print style to use for the report. Use 1 for Simplex, 2 for Duplex, and 3 for Tumble. -
saveCSVFile(optional):
boolean
Indicate true to generate a CSV file for the report.
-
savePDLFile(optional):
boolean
Indicate true to save the Print Definition Language file to the print queue after completion.
array
-
Array of:
object POValue
A processing option value to use for this execution of the report.
array
-
Array of:
object Criterion
A criterion for data selection of a report.
object
-
comparisonType:
string
Allowed Values:
[ "EQUAL", "NOT_EQUAL", "LESS_THAN", "GREATER_THAN", "LESS_EQUAL", "GREATER_EQUAL", "VALUE_IN_LIST", "NOT_VALUE_IN_LIST", "WITHIN_A_RANGE", "NOT_WITHIN_A_RANGE", "EQUAL_OR_EMPTY" ]
The method used to compare the subject and predicate in this criterion. -
operator(optional):
string
Allowed Values:
[ "OR", "AND" ]
The operator to use in conjuntion with other criterion in the criteria set (if there are other critrion). -
predicate:
object SelectionValue
The field or value to use as the subject or predicate in a data selection criterion.
-
subject:
object SelectionValue
The field or value to use as the subject or predicate in a data selection criterion.
object
-
dictItem(optional):
string
The data dictionary alias of the column that is being compared.
-
itemID(optional):
integer(int32)
-
literalType(optional):
string
Allowed Values:
[ "SINGLE", "LIST", "RANGE" ]
If the values is a literal (not a business view field), indicate if it is a single value, a list or a range. -
processingOption(optional):
boolean
-
reportInterconnect(optional):
boolean
True value indicates that a report interconnect value is being set in selection.
-
reportInterconnectID(optional):
integer(int32)
The ID of the report interconnect data structure member to be used for data selection.
-
reportInterconnectTemplateName(optional):
string
The template name of the report interconnect data structure.
-
reportVariable(optional):
boolean
-
sectionID(optional):
integer(int32)
-
specialValue(optional):
string
Allowed Values:
[ "TODAY", "NULL_DATE", "NULL_UTIME" ]
A special value for the field to be compared with, special values only apply to date and UTIME data types. -
table(optional):
string
The table containing the column that is being compared.
-
templateName(optional):
string
-
values(optional):
array values
The single, list, or range or literal values
-
variableID(optional):
integer(int32)
-
view(optional):
string
The business view containing the column that is being compared.
array
-
Array of:
object OrderByColumn
A column to include in data secquence along with it's sequencing properties.
object
-
dictItem:
string
Allowed Values:
[ "ASC", "DESC" ]
The data dictionary alias of the column to sort by. -
direction:
string
The direction to sort the data in this column.
-
levelBreak(optional):
boolean
Indicate true if a level break is desired when the value of this column changes.
-
pageBreak(optional):
boolean
Indicate true if a page break is desired when the value of this column changes. Setting this value to true will also set the level break value to true, level break is required for a page break.
-
seq:
integer(int32)
The proiority of the column in the sequence. Lower numbers will be sequenced before higher numbers.
-
table:
string
The table of the column to sort by.
object
-
id:
integer(int64)
The ID of the processing option value to set, defined in the processing option template. For date values the date must be in yyyyMMdd format, for example 20190512.
-
value:
string
The value to use for the processing option with the associated id.
Response
- application/json
200 Response
object
-
actualServer(optional):
string
For Virtual Batch Queue use, this is the actual server the UBE executed in.
-
environment(optional):
string
The environment where the report was run.
-
executionServer(optional):
string
The server on which the report was executed.
-
fileName(optional):
string
The filename of the file transferred if output was requested.
-
jobNumber(optional):
integer(int32)
The job number of the report.
-
jobStatus(optional):
string
Allowed Values:
[ "D-Done", "E-Error", "H-Hold", "P-Processing", "S-In Queue", "W-Waiting" ]
The status of the report. -
lastDate(optional):
string
The date of last activity for the report in yyyyMMdd format.
-
lastModifiedUser(optional):
string
The last modified user ID.
-
lastTime(optional):
string
The time of last activity for the report in hhmmss 24 hour format.
-
message(optional):
string
A detailed message in case of errors.
-
objectType(optional):
string
The type of the object. UBE is the default for a report.
-
oid(optional):
string
The concatenated report and version name.
-
queueName(optional):
string
The name of the queue in which the report was run.
-
reportName(optional):
string
The name of the report.
-
reportVersion(optional):
string
The version of the report.
-
submitDate(optional):
string
The date the report was submitted in yyyyMMdd format.
-
submitTime(optional):
string
The time the report was submitted in hhmmss 24 hour format.
-
user(optional):
string
The user who submitted the report.
-
xmlpJobGUID(optional):
string
The job GUID for XMLP reports.
-
xmlpOutputDefinitions(optional):
array xmlpOutputDefinitions
A list of all outputs from an XMLP job.
array
400 Response
403 Response
415 Response
444 Response
object
-
errorText(optional):
string
-
exception(optional):
string
The class of the exception if an exception was thrown.
-
exceptionId(optional):
string
ExceptionId, only if an exception record was written to the F980060
-
message(optional):
string
Details about the error.
-
status(optional):
string
Allowed Values:
[ "ERROR", "WARNING" ]
Status determined by exception handling -
timeStamp(optional):
string
The timestamp indicating the time the error message was returned.
-
type(optional):
string
Optional type of error
-
userDefinedErrorText(optional):
string
Optional error text added to an orchestration step.
500 Response
object
-
errorText(optional):
string
-
exception(optional):
string
The class of the exception if an exception was thrown.
-
exceptionId(optional):
string
ExceptionId, only if an exception record was written to the F980060
-
message(optional):
string
Details about the error.
-
status(optional):
string
Allowed Values:
[ "ERROR", "WARNING" ]
Status determined by exception handling -
timeStamp(optional):
string
The timestamp indicating the time the error message was returned.
-
type(optional):
string
Optional type of error
-
userDefinedErrorText(optional):
string
Optional error text added to an orchestration step.
Examples
Example Request - Basic
The following shows an example of a report service request to run an existing version using the version defined data selection and sequencing. The token value is from a prior call to the tokenrequest service to establish a session.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/report/execute -d { "token": "0449pMVIJy1icXVEfVGFSoFqgOevhbVx5Cam4mSeoim6x8=MDE5MDEzNzMyMzA2NjE5NDYyMjc5OTEyMzEwLjEzOS4xMTAuMzgxNTA5NjM1MjE3NzUy", "reportName": "R064011", "reportVersion": "XJDE0001" }
Example Response
The following example shows the contents of the response body. This response example applies to all report service requests with the fireAndForget property set to true for the report to run asynchronously.
{ "reportName": "R064011", "reportVersion": "XJDE0001", "jobNumber": 1128, "executionServer": "myEntServer" }
Example Request - Wait For Completion
The following shows an example of a report service request to run an existing version using the version defined data selection and sequencing. The fireAndForget paramter is false, requesting that the service wait until the report is complete to return. The token value is from a prior call to the tokenrequest service to establish a session.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/report/execute -d { "token": "0449pMVIJy1icXVEfVGFSoFqgOevhbVx5Cam4mSeoim6x8=MDE5MDEzNzMyMzA2NjE5NDYyMjc5OTEyMzEwLjEzOS4xMTAuMzgxNTA5NjM1MjE3NzUy", "reportName": "R064011", "reportVersion": "XJDE0001", "fireAndForget":false }
Example Response - Wait for Completion
The following example shows the contents of the response body, which contains details about the status of the report completion.
{ "reportName": "R064011", "reportVersion": "XJDE0001", "jobNumber": 1130, "executionServer": "myEntServer", "jobStatus": "D", "objectType": "UBE", "user": "JDE", "environment": "JDV920", "submitDate": "20171102", "lastDate": "20171102", "submitTime": 152509, "lastTime": 152511, "oid": "R064011_XJDE0001", "queueName": "QBATCH" }
Example Request - Data Selection
The following shows an example of a report service request to run an existing version and override the defined data selection. Be aware that the security configuration may prevent the ability to override data selection. The token value is from a prior call to the tokenrequest service to establish a session.
This requests the data selection for Start Date (DST) to be equal to the date 02/01/2010.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/report/execute -d { "token": "044frDm3po61n7sVRJSW3743TxkPkdG7qGcWPs9u8rL0fI=MDE5MDEzNzAxMjczNDMzMTg0NDIzMjkxNDEwLjEzOS4xMTAuMzgxNTA5NjM2MTI4NzMy", "reportName": "R064011", "reportVersion": "NLVERS", "dataSelection": { "criteria": [{ "subject": { "view": "V060116Z", "dictItem": "DST", "table": "F060116" }, "predicate": { "literalType": "SINGLE", "values": ["02/01/2010"] }, "comparisonType": "EQUAL" }] } }
Example Request - Data Sequencing and Processing Options
The following shows an example of a report service request to run an existing version and override the defined data sequencing and processing options. Be aware that the security configuration may prevent the ability to override processing options. The token value is from a prior call to the tokenrequest service to establish a session.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/report/execute -d { "token": "044frDm3po61n7sVRJSW3743TxkPkdG7qGcWPs9u8rL0fI=MDE5MDEzNzAxMjczNDMzMTg0NDIzMjkxNDEwLjEzOS4xMTAuMzgxNTA5NjM2MTI4NzMy", "reportName": "R064011", "reportVersion": "NLVERS", "dataSequence": { "orderByColumns": [{ "direction": "ASC", "pageBreak": true, "levelBreak": true, "seq": 1, "table": "F060116", "dictItem": "HMCO" }, { "levelBreak": true, "direction": "ASC", "seq": 2, "table": "F060116", "dictItem": "HMCU" }, { "levelBreak": true, "direction": "ASC", "seq": 4, "table": "F060116", "dictItem": "AN8" }, { "levelBreak": true, "direction": "ASC", "seq": 3, "table": "F060116", "dictItem": "ALPH" }] }, "poValues": [{ "id": 1, "value": "" }, { "id": 2, "value": "1" }, { "id": 3, "value": "HOM" }] }
Example Request - Print Options
The following shows an example of a report service request including print options and queue name. The token value is from a prior call to the tokenrequest service to establish a session.
curl -X POST -H "Content-Type:application/json" http://ais_server_url/jderest/v2/report/execute -d { "token": "044frDm3po61n7sVRJSW3743TxkPkdG7qGcWPs9u8rL0fI=MDE5MDEzNzAxMjczNDMzMTg0NDIzMjkxNDEwLjEzOS4xMTAuMzgxNTA5NjM2MTI4NzMy", "reportName": "R064011", "reportVersion": "XJDE0001", "printOptions": { "numberCopies": 2, "orientation": 1, "paperType": "LETTER", "printImmediate": true, "printStyleSDT": 2, "printerName": "PRINTER1", "saveCSVFile": true, "savePDLFile": true }, "queueName":"QBATCH2" }