Scenario 1: Import Metadata into Applications

In this scenario, you run a sequence of commands or use REST APIs to complete these steps. For information on EPM Automate commands, see Working with EPM Automate for Oracle Enterprise Performance Management Cloud.

  • 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 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 .

    • URL: https://https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX>

    • Identity Domain: IDENTITYDOMAIN

  • Upload metadata file:

  • Import metadata from into the application using job accountMetadata


    Because metadata is imported from a file specified by the importmetadata command, the EPM Automate Utility ignores the import filename, if any, defined in the job.

  • Refresh the cube

  • Log out

Example 2-1 EPM Automate

epmautomate login username
            password https://<SERVICE_NAME>-<TENANT_NAME>.<SERVICE_TYPE>.<dcX> identitydomain

epmautomate uploadfile
epmautomate importmetadata accountMetadata
epmautomate refreshcube
epmautomate logout

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

Example 2-2 Java

public void integrationScenarioImportMetadataIntoApplication() throws Exception {
	executeJob("IMPORT_METADATA", "accountMetadata", "{}");
	executeJob("CUBE_REFRESH", null, null);

Common Functions: See Common Helper Functions for Java.

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

Example 2-3 cURL

funcIntegrationScenarioImportMetadataIntoApplication() {
	funcUploadFile ""
	funcExecuteJob "IMPORT_METADATA" "accountMetadata" "{}"
	funcExecuteJob "CUBE_REFRESH" "cubeRefresh"

Example 2-4 Groovy

def integrationScenarioImportMetadataIntoApplication() {
	executeJob("IMPORT_METADATA", "accountMetadata", "");
	executeJob("CUBE_REFRESH", "cubeRefresh", null);