Before You Begin
This 30-minute OBE shows you how to create an orchestration
that includes a data request to retrieve EnterpriseOne data and
output mappings that allow you to export that data retrieved
from EnterpriseOne into CSV, JSON, and XML formatted files.
Finally, the generated file will be returned as output from the
orchestration call.
Background
In the Orchestrator Studio, you can add a data request to an orchestration to enable an orchestration to retrieve data from EnterpriseOne. You can also choose to export the data from the data request to a CSV, JSON or XML file. The file generated can be returned as output of the orchestration, sent in a REST request, or sent to an FTP location.
What Do You Need?
- JD Edwards EnterpriseOne test environment with a minimum of EnterpriseOne Tools 9.2.6.0.
Creating
an Orchestration with a Data Request to Retrieve Data from
EnterpriseOne
This section describes how to create an orchestration that includes a data request to retrieve Address Book data from the V0101B business view in EnterpriseOne.
- Access the Orchestrator Studio.
- On the Orchestrator Studio home page, click the Data Request icon, and then click the New button on the Orchestrations page.
- On the Data Request design page, complete these fields:
- Name =
Get_AddressBooks - Enter Short Description =
Retrieve Address Book data - In the Table/View Name field, enter
V0101Band click Load. - In the grid, click the Filter icon next to Address Number[F0101] - AN8.
- In the Conditions area, configure the condition to filter on
address numbers greater than zero, which should look like this
when complete:
Address Number[F0101] > 0 - To specify the data for the data request to return, in the Fields grid, click the Return icon next to the following fields:
- Number (AN8)
- Alpha Name (ALPH)
- Sch Type (AT1)
- Address Line 1 (ADD1)
- Postal Code (ADDZ)
- City (CTY1)
- ST (ADDS)
- Ctry (CTR)
- Prefix (AR1)
- Phone Number (PH1)
- Click Save.
The data request should look like this when complete:
Data Request - Click Manage and click Create Orchestration.
- Change the value of the following fields:
- Name =
Export_Files - Enter Short Description =
Export EnterpriseOne Address Book data to other files
- Name =
- Click Save.
The orchestration should look like this when complete:
Testing the Data Request Orchestration
- Double-click the Start node of the
Export_Files orchestration.
Alternatively, you can use click the Tools menu and click Run Orchestrations. - Click Run. Verify the output. Verify
that the output displays a list of all address book records
with addresses and phones.
Run Orchestrations Window
Configuring the Orchestration Output to Generate
a CSV File
This section describes how to configure the output of the orchestration to generate a CSV file and return that file as the output of the orchestration.
- Access the Export_Files orchestration you just created, click the End node, and click Outputs and Assertions.
- Click the menu (Output Array to File) in the Select column on the Data Browser – V0101B row.
- Enable the Output Grid to File option.
- Enable the Overwrite Existing File option.
- Click anywhere outside the Outputs and Assertion window and save the orchestration.
- Click the End node and click Outputs and Assertions, again.
- Click the Files tab and select Response is a .zip file.
- In the grid, in the Output File Variable drop-down list, select Get_AddressBooks_filename.
- Save the orchestration.
Testing the Orchestration CSV Output
- Double-click the Start node of the orchestration. Alternatively, you can click Tools and select Run Orchestrations menu.
- On the right side of the Run Orchestrations page, select application/octet-stream from the Accept drop-down list (if it is not already selected).
- Click Run.
- Verify that an output and the OK status response is displayed.
- Verify that the output file is downloaded.
- Open the downloaded .zip file from your download location, and open the Get_AddressBooks.csv file.
- The file should look like this (it may open in Excel, but you will see each record with an address book data):
- Click the X icon to close the Run Orchestrations window and return to the orchestration.
Generating an XML File
This section describes how to use the same data request and generate a second XML output file.
- Double-click the line between the data request and the end node. Alternatively, you can click Design Mode and click the plus (+) icon on the line.
- Select Data Request.
- Select Get_AddressBooks.
- Verify that the second data request is added to the orchestration.
- Click the End node and select Outputs and Assertions.
- Enable the Select All option.
- Collapse the first Get_AddressBooks row by clicking the triangle icon.
- Change the name of the second data request grid output to
Get_AddressBooks_xml. - Click the menu in the Select column on the second Data Browser – V0101B line.
- Enable the Output Grid to File option.
- Select the XML option from the Output Type drop-down list.
- Enable the Overwrite Existing File option.
- Enable the Remove Array From Response option. Since we are getting the data out in a file it doesn’t need to be in the response.
- Click anywhere outside the Output and Assertions window to close it and save the Orchestration.
- Return to Outputs and Assertions and select the Files tab.
- Add the second (xml) file to the list of files for the output .zip file by choosing it from the drop-down list in the second row.
- Save the Orchestration.
- Perform the steps in Section 4 again.
Verify that the downloaded zip file contains both a .csv
file and an .xml file.
The XML file should like this (formatted for easier reading): - Close the Run Orchestrations page and return to the orchestration.
Adding JSON File to the Orchestration Output
This exercise describes how to add a JSON file to the orchestration output.
- Double-click the line between the data request and
the end node.
Alternatively, you can click Design Mode and click the plus (+) icon on the line. - Select Data Request.
- Select Get_AddressBooks.
- Verify that the third data request is added to the orchestration.
- Click the End node and select Outputs and Assertions.
- Enable the Select All option.
- Collapse the first and second Get_AddressBooks rows using the triangle icon.
- Change the name of the second data request grid output to
Get_AddressBooks_json. - Click the menu in the Select column on the third Data Browser – V0101B line.
- Enable the Output Grid to File option.
- Select the JSON option from the Output Type drop-down list.
- Enable the Overwrite Existing File option.
- Enable the Remove Array From Response option. Since we are getting the data out in a file, it doesn’t need to be in the response.
- Click anywhere outside the Outputs and Assertions window to close it and then save the Orchestration.
- Return to Outputs and Assertions and select the Files tab.
- Add the third (json) file to the list of files for the output .zip file by choosing it from the drop-down list in the third row.
- Save the Orchestration
- Perform the steps in Section 4 again. This time the zip file that is downloaded should have all three files - a .csv file, an .xml file, and an .json file.
- The JSON file looks like this (formatted for easier reading):
Creating
an Orchestration to Export EnterpriseOne Data to CSV, JSON, and XML
Formats