Thursday, June 17, 2021

Primavera Unifier REST API Integration Login Testing

Rest API Integration Login Testing Example HTML page

 Step 1: Required to Create Integration user in Primavera Unifier


 











  • Login into Primavera Unifier as Company Administrator (coadmin)
  • Navigate to Company workspace > User Administration > Integration Users
  • Create a new user for Integration Testing
Step 2: Create a new Rest API request in Postman tool to validate authentication












  • Goto Postman tool, Navigate to workspace and then Click 'New' request
  • Select Method as "GET" and enter Rest API URL as below as below
    • http://<host> : port/ws/rest/service/v1/login
  • Select Basic Auth as Authorization type
  • Enter Username and Password which is created as per Step 1
  • Hit Send button to run and authenticate
once it is successful, the status code will 200 and the response will be as follows,

{
    "expiryDate""12/14/2021",
    "Timezone""(UTC-08:00) Pacific Time (US & Canada)",
    "expiryTime""12/14/2021 10:36 AM",
    "status"200,
    "token""eyJ0eXAiOiJEQiJ9.eyJ1c2VybmFtZSI6IiQkdXNlcjAxIn0=.32F137AE-79DD -113A-C9D0-FA8D405AF8C207C520887EB0C90281B451D870F43DEC"
}

Note: The generated  Token shall be used in the subsequent Rest API call




Sunday, June 6, 2021

How to Send email notifications to external users in Unifier?

Send Email notifications

Problem Statement:

Oracle Primavera Unifier sends email notifications when a task is created or when the is CCed in any of the workflow steps.  In this the task assignee or cc users should be available/created in the Unifier application otherwise notification is not possible. Sometimes it is required to send the email notification to external contacts who are not part of Unfier licensed.

Solution: 

Add external email id in Approved Email List

Login to Unifier and Navigate to Company workspace (Admin Mode) > Standard & Libraries > Approved Email List
Add a new external email id by clicking on the New button. Once updated Click OK/Apply to save the email id in the system

Sending External Email

Goto any Business Process, in this case, I have navigated the Submittal business process and opened an in-progress record, then chose Linked Email section > Add > New Email

A New Mail window will pop up, select the +CC option and enter external email id in the External CC section and click Send to send an email notification to external users