Configure the Primavera Unifier Connection

This accelerator uses only one connection to Primavera Unifier:

  • Primavera Unifier API - Uses the REST Adapter to perform trigger and invoke operations to and from the Primavera Unifier REST API.

Primavera Unifier API (using the REST Adapter)

  1. In the Connections section, click Actions Actions icon on the connection, then select Edit.
  2. In the Properties section, do the following:
    1. In the Connection Type field, select REST API Base URL.
    2. In the Connection URL field, enter the URL of your Primavera Unifier instance, including your region (if applicable), the host server, and your specific company code.

      For example:

      https://us1.unifier.oraclecloud.com/<company-code>

  3. In the Security section, do the following:
    1. In the Security Policy field, select OAuth Custom Two Legged Flow.
    2. In the Access Token Request field, enter the access token request in the following format:
      -X GET 'https://<SERVER_URL>/ws/rest/service/v2/auth/token' \
            -H 'Content-Type: application/x-www-form-urlencoded' \
            -H 'Authorization: Basic <Base64-encoded-username-and-password>'

      Where:

      • <SERVER_URL> is the base URL of your Primavera Unifier instance (e.g., us1.unifier.oraclecloud.com/<company-code>)
      • <Base64-encoded-username-and-password> is the Base64-encoded version of the user name and password of the Primavera Unifier integration user. See Generate Base64-Encoded User Credentials for Access Token Requests.
  4. In the Optional Security section enter the details in the following format:
    • $access_token = access_token
    • $token_type = token_type
    • $access_token_usage = -H Authorization: ${token_type} ${access_token}

      Add Multi-tenancy headers to the access token usage (if applicable):

      -H x-unifier-tenant:<tenant-id> -H x-unifier-tenant-code:<tenant-code>

      You can confirm the exact header names/values by issuing the same token call in Postman/curl and inspecting the successful response for your tenancy.

  5. Click Test to ensure that your connection is successfully configured. A message confirms if your test is successful.
  6. Click Save. If prompted, click Save again.
  7. To return to the project workspace, click Go back.