Configure the Primavera Unifier Connections

This accelerator uses the following connections to Primavera Unifier:

  • Primavera Unifier API - Performs trigger and invoke operations to and from the Primavera Unifier REST API.
  • Unifier basic - Invokes the Primavera Unifier token endpoint to identify whether the Primavera Unifier instance is single tenant or multi-tenant.

Both connections use the REST Adapter.

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://<region>.unifier.oraclecloud.com/<company-code>

      If there is no region, the connection URL is: https://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 "Authorization: Basic <Base64-encoded-username-and-password>" \
        -H "Content-Type: application/x-www-form-urlencoded" \
        -d "grant_type=client_credentials"

      Where:

      • <SERVER_URL> is the base URL of your Primavera Unifier instance, including your region (if applicable), host server, and your specific company code (for example: <region>.unifier.oraclecloud.com/<companycode>).

      • <Base64-encoded-username-and-password> is the encoded username and password value of your Primavera Unifier integration user. See Prepare Base64-Encoded Credentials.

  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}
  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 Back icon.

Unifier Basic Connection (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://<region>.unifier.oraclecloud.com/<companycode>

      If there is no region, the base connection URL is:

      https://unifier.oraclecloud.com/<companycode>

  3. In the Security section, do the following:
    1. In the Security Policy field, select Basic Authentication.
    2. In the Username and Password fields, enter the login credentials of your Primavera Unifier integration user.
  4. Click Test to ensure that your connection is successfully configured.
    A message confirms if your test is successful.
  5. Click Save. If prompted, click Save again.
  6. To return to the project workspace, click Go back Back icon.