Scenario 3: Export and Download Metadata and Data

In this scenario, you run a sequence of EPM Automate Utility commands to complete these steps. For detailed information, see Working with EPM Automate.

  • Sign in to the instance using these credentials. Substitute the service administrator user name, password, and identity domain of the service instance for the italicized placeholders here and in the EPM Automate Utility sample.

    • User name: USERNAME

    • Password file: C:/<Directory>/<fileName>.epw

      You need to create this file manually. See the encrypt command in Command Reference in Working with EPM Automate for Oracle Enterprise Performance Management Cloud .


    • Identity Domain: IDENTITYDOMAIN

  • Export the metadata into using job exportentitymetadata.

  • Export the application data into using job forecastdata.

  • List the contents of the Planning repository.

  • Download the exported data files ( and to the local machine.

  • Log out.

Example 2-9 EPM Automate

epmautomate login username password https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX>
epmautomate exportmetadata exportentitymetadata
epmautomate exportdata forecastdata
epmautomate listfiles
epmautomate downloadfile
epmautomate downloadfile
epmautomate logout

EPM Automate Utility displays a code in the console to indicate the status of the operation. See Working with EPM Automate.

Example 2-10 Java

public void integrationScenarioExportMetadataAndDataAndDownloadFiles() throws Exception {
	executeJob("EXPORT_METADATA", "exportentitymetadata", "{}");
	executeJob("EXPORT_DATA", "Forecastdata", "{}");

Common Functions: See Common Helper Functions for Java.

Dependent APIs: see Java Sample – and Java Sample – in Upload and Download Files.

Example 2-11 cURL

funcIntegrationScenarioExportMetadataAndDataAndDownloadFiles() {
	funcExecuteJob "EXPORT_METADATA" "exportentitymetadata" "{}"
	funcExecuteJob "EXPORT_DATA" "Forecastdata" "{}"
	funcDownloadFile ""
	funcDownloadFile ""

Example 2-12 Groovy

def integrationScenarioExportMetadataAndDataAndDownloadFiles() {
	executeJob("EXPORT_METADATA", "exportentitymetadata", "");
	executeJob("EXPORT_DATA", "Forecastdata", "");