Execute a Report v2

post

/v2/report/execute

Execute the specified report.

Request

Supported Media Types
Header Parameters
Body ()
The input to the report service.
Root Schema : LaunchUBERequest
Type: object
The input to the report service.
Show Source
  • biReportDeliveryTypes
    A list of delivery methods to use for an embedded BI Publisher report. You must also specify at least one biReportOutputType for this input value to take effect.
    Allowed values: PRINT - Print, EMAILA - Address Book Number Email, EMAILE - Email Address in Definition,EMAILD - Data Driven Email
  • biReportLanguages
    A list of languages to produce for an embedded BI Publisher report. You must also specify at least one biReportOutputType for this input value to take effect.
    You can use any of the EnterpriseOne supported language codes for this report or special values *ALL - All Langages, or USRPF - Current Users Langauge
  • biReportOutputTypes
    A list of outputs to produce for an embedded BI Publisher report. You must specify at least one value to be able to send delivery types or languages.
    Allowed output types: PDF, RTF, XML, HTML, EXCEL, ETEXT, PPT
  • DataSelection
    Populate this input object to override data selection for this execution of the report.
  • DataSequence
    Populate this input object to override data sequence for this execution of the report.
  • An identifier for the device making the service call. If not provided, the requesting IP address is used.
  • Specify the environment to use for login. If not specified, the default environment configured for the AIS Server will be used.
  • 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.
  • The HTML (JAS) Server to use for login. If not specified, the default HTML Server configured for the AIS Server will be used.
  • A true value will produce a JDE log and a JDEDEBUG log for the report.
  • A true value will produce a JDE log for the report.
  • Allowed Values: [ "FTP" ]
    Complete if the report output will be sent to a third-party location.
  • The JD Edwards EnterpriseOne password, which is required if other authentication methods are not being used.
  • The directory on a third-party FTP server where you want the output to be sent.
  • 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
    Used to override the print options for a report.
  • Used for logging in with psToken. Primarily used by the HTML Server to establish a session with the AIS Server.
  • Specify a queue name to send to a diffrent job queue.
  • 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.
  • The name of the report to execute, for example R014021.
  • 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
    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.
  • The role to use for login. If not specified, the default role configured for the AIS Server will be used.
  • Specify the soft coding record to identify the third-party system.
  • The AIS token, which is required if other authentication methods are not being used.
  • JD Edwards EnterpriseOne username, which is required if other authentication methods are not being used.
  • The Override Version if defined
  • Allowed Values: [ "PDF", "CSV", "OSA" ]
    Specify the output to send to the third-party system.
Nested Schema : biReportDeliveryTypes
Type: array
A list of delivery methods to use for an embedded BI Publisher report. You must also specify at least one biReportOutputType for this input value to take effect.
Allowed values: PRINT - Print, EMAILA - Address Book Number Email, EMAILE - Email Address in Definition,EMAILD - Data Driven Email
Show Source
Nested Schema : biReportLanguages
Type: array
A list of languages to produce for an embedded BI Publisher report. You must also specify at least one biReportOutputType for this input value to take effect.
You can use any of the EnterpriseOne supported language codes for this report or special values *ALL - All Langages, or USRPF - Current Users Langauge
Show Source
Nested Schema : biReportOutputTypes
Type: array
A list of outputs to produce for an embedded BI Publisher report. You must specify at least one value to be able to send delivery types or languages.
Allowed output types: PDF, RTF, XML, HTML, EXCEL, ETEXT, PPT
Show Source
Nested Schema : DataSelection
Type: object
Populate this input object to override data selection for this execution of the report.
Show Source
Nested Schema : DataSequence
Type: object
Populate this input object to override data sequence for this execution of the report.
Show Source
Nested Schema : poValues
Type: array
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.
Show Source
Nested Schema : PrintOptions
Type: object
Used to override the print options for a report.
Show Source
Nested Schema : riValues
Type: array
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.
Show Source
Nested Schema : criteria
Type: array
The data selection criteria.
Show Source
Nested Schema : Criterion
Type: object
A criterion for data selection of a report.
Show Source
  • 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.
  • Allowed Values: [ "OR", "AND" ]
    The operator to use in conjuntion with other criterion in the criteria set (if there are other critrion).
  • SelectionValue
    The field or value to use as the subject or predicate in a data selection criterion.
  • SelectionValue
    The field or value to use as the subject or predicate in a data selection criterion.
Nested Schema : SelectionValue
Type: object
The field or value to use as the subject or predicate in a data selection criterion.
Show Source
Nested Schema : values
Type: array
The single, list, or range or literal values
Show Source
Nested Schema : orderByColumns
Type: array
The data sequence columns and order direction
Show Source
Nested Schema : OrderByColumn
Type: object
A column to include in data secquence along with it's sequencing properties.
Show Source
Nested Schema : POValue
Type: object
A processing option value to use for this execution of the report.
Show Source
  • 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.
  • The value to use for the processing option with the associated id.
Back to Top

Response

Supported Media Types

200 Response

Successful Execution
Body ()
Root Schema : UBEProcessingResponse
Type: object
Details of the status of the report.
Show Source
Nested Schema : xmlpOutputDefinitions
Type: array
A list of all outputs from an XMLP job.
Show Source
Nested Schema : XmlpOutputDefinition
Type: object
Show Source

400 Response

Bad Request - Invalid JSON Input

403 Response

Authorization Failure

415 Response

Invalid Content-Type Header - Must use application/json

444 Response

Invalid Token
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source

500 Response

Server Failed to Process Request
Body ()
Root Schema : ServiceErrorResponse
Type: object
Error Response
Show Source
Back to Top

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"
}
Back to Top