Oracle Fusion

Overview

The Oracle Fusion HCM connector enables your Leena AI Agents to integrate with your organization's Oracle Fusion Human Capital Management (HCM) platform, facilitating automated HR operations including absence management, worker lifecycle management, benefits enrollment, and approval workflows.

Oracle Fusion HCM is Oracle's comprehensive cloud-based human capital management suite that provides end-to-end HR capabilities including core HR, talent management, workforce management, and payroll. The Oracle Fusion HCM connector allows Leena AI to automate HR workflows, manage worker data, handle absence requests, and interact with HCM processes seamlessly.

API Details

Leena AI integrates with Oracle Fusion HCM via REST APIs.

Documentation link: https://docs.oracle.com/en/cloud/saas/human-resources/24d/farws/Quick_Start.html

Setup

The Oracle Fusion HCM connector uses Username and Password (Basic) authentication over SSL.


Prerequisites

Before setting up the Oracle Fusion HCM connector, ensure you have:

  • Administrator access to your Oracle Fusion Cloud HCM instance
  • An integration user account with the appropriate security roles and privileges
  • The Oracle Instance URL for your HCM environment (e.g., https://your-company.oraclecloud.com)
  • Access to Oracle Security Console for role and privilege management
  • Access to your Leena AI workspace with connector management permissions

Get credentials

Here is how to set up an integration user in Oracle Fusion HCM:

  1. Log in to Oracle Fusion Cloud as a Security Administrator
  2. Create or identify an Integration User:
    1. Navigate to Tools > Security Console
    2. Go to the Users tab
    3. Create a new user or identify an existing integration user account
    4. Ensure the user has a non-expiring password or a service account configuration
  3. Assign Required Security Roles:
    1. In the Security Console, search for your integration user
    2. Click on the Display Name to access user information
    3. Click Edit and then Add Role
    4. Assign the necessary roles based on the actions you need. Common roles include:
      • Human Capital Management Integration Specialist — for worker and absence data access
      • Use REST Service - Worker as HR — for workers REST API access
      • Benefits Administrator — for benefits enrollment actions
    5. Save and close
  4. Configure Data Security (if required):
    1. Navigate to Setup and Maintenance > Tasks > Manage Data Role and Security Profiles
    2. Create a data role with the appropriate security profiles to control data-level access
    3. Assign the data role to your integration user
  5. Note the following credentials:
    • Oracle Instance URL: Your Oracle Cloud environment URL (e.g., https://your-company.fa.us2.oraclecloud.com)
    • Username: The integration user's username
    • Password: The integration user's password

Add connection

Here is how to add a connection on Leena AI:

  1. Log in to your Leena AI workspace
  2. Navigate to Settings > Integrations
  3. Search for "Oracle Fusion HCM" and select it from the list to add its new connector
  4. Select the authentication type: Username and Password
  5. Start configuring the connector:
    1. Oracle Instance URL: Your Oracle Fusion Cloud instance URL (e.g., https://your-company.oraclecloud.com)
    2. Username: Integration user's username
    3. Password: Integration user's password
  6. Click Test Connection to verify the credentials
  7. Save the connector configuration

Actions

The following actions are supported for the Oracle Fusion HCM connector:

Absence Management

Create Absence

Creates a new absence record for a worker in Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to create a new absence request, once the user raises a query to do so.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Person IDThe person for whom the absence is being created
Absence TypeThe type of absence being requested
Start DateThe start date of the absence
End DateThe end date of the absence
Legal Entity IDThe legal entity associated with the worker
Optional
NameDescription
Start TimeThe start time of the absence
End TimeThe end time of the absence
Start Date DurationDuration type for the start date (e.g., full day, half day)
End Date DurationDuration type for the end date
Absence StatusThe status of the absence record
Absence AttachmentsFile attachments for the absence request (file name, URL, data type code)
CommentsAdditional comments for the absence request

Response

Upon successful creation, the action returns the created absence details including the absence record ID and status.


Update Absence

Updates an existing absence record in Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to modify an existing absence record, once the user provides the details to be updated.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Absence Unique IDThe unique identifier of the absence to update
Optional
NameDescription
Absence Type ReasonThe reason for the absence
Absence StatusThe updated status of the absence
Start DateThe updated start date
End DateThe updated end date
Start TimeThe updated start time
End TimeThe updated end time
CommentsUpdated comments for the absence

Response

Upon successful update, the action returns the updated absence record details.


Delete Absence

Deletes an existing absence record from Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to remove an absence record, once the user specifies the absence to be deleted.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Absence Unique IDThe unique identifier of the absence to delete
Optional
NameDescription
CommentsComments for the deletion request

Response

Upon successful deletion, the action returns a confirmation of the deletion.


Get All Absences

Retrieves a list of absence records from Oracle Fusion HCM. This action can be leveraged by Leena AI Orchestrator/Agent to list all absences or filter by specific criteria.

Input Parameters

Here are the input parameters required to set up this action:

All parameters are optional for this action.

Optional
NameDescription
Person NumberFilter absences by person number
Start DateFilter by absence start date
End DateFilter by absence end date
Absence StatusFilter by absence status
Approval StatusFilter by approval status
FieldsSpecific fields to include in the response
ExpandChild resources to expand in the response
LimitMaximum number of records to return
PagePage number for pagination
Order ByField to order results by
Only DataExclude links and metadata from the response
Total ResultsInclude total result count in the response
Query (q)Advanced query filter

Response

The action returns a list of absence records, each containing absence details, dates, status, and approval information.


Get Absence by ID

Retrieves a specific absence record by its unique identifier.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Absence Unique IDThe unique identifier of the absence to retrieve
Optional
NameDescription
Only DataExclude links and metadata from the response

Response

The action returns the complete absence record details including dates, type, status, and associated metadata.


Get Absence Type Balance

Retrieves the absence type balance for a specific worker, showing remaining leave entitlements.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Person IDThe person whose absence balance is to be checked
Effective DateThe date for which the balance is calculated
Optional
NameDescription
Assignment IDFilter by a specific assignment
User ContextAdditional context for the balance calculation

Response

The action returns the absence type balance details including available balance, used leave, and entitlement information.


Get Applicable Absence Types By User

Retrieves the list of absence types that are applicable for a specific user based on their employment configuration.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Person IDThe person whose applicable absence types are to be retrieved
Optional
NameDescription
LimitMaximum number of records to return
OffsetNumber of records to skip

Response

The action returns a list of applicable absence types for the specified user.


Worker Management

Create Worker (Hire)

Creates a new worker (hire) in Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to initiate a new hire process, once the user provides the worker details.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
First NameThe first name of the worker
Last NameThe last name of the worker
Legislation CodeThe legislation code for the worker's country
Effective DateThe hire date
Legal Employer NameThe legal employer for the worker
Worker TypeThe type of worker (e.g., Employee, Contingent Worker)
Action CodeThe hire action code
Business Unit NameThe business unit for the worker
Phone TypeThe type of phone number
Phone NumberThe worker's phone number
Email TypeThe type of email address
Email AddressThe worker's email address
Address TypeThe type of address
CountryThe country for the worker's address
Optional
NameDescription
Projected Start DateProjected start date (required if creating a Pending Worker)
Proposed User Person TypeProposed person type (required if creating a Pending Worker)
Address Line 1–4Address line fields
Town or CityThe city of the worker's address
Postal CodeThe postal code of the worker's address

Response

Upon successful creation, the action returns the created worker details including the worker ID and person number.


Update Worker

Updates an existing worker's information in Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to modify worker details, once the user provides the fields to be updated.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Worker IDThe unique identifier of the worker to update
Effective DateThe effective date for the update
Optional
NameDescription
Update Person InfoToggle to update personal information
Update NameToggle to update name details
Update EmailToggle to update email address
Update AddressToggle to update address
Update PhoneToggle to update phone number
Date of BirthUpdated date of birth (when updating person info)
Country of BirthUpdated country of birth
Name Unique IDUnique ID for the name record to update
First NameUpdated first name
Last NameUpdated last name
Email Unique IDUnique ID for the email record to update
Email AddressUpdated email address
Address Unique IDUnique ID for the address record to update
Address Line 1–2Updated address lines
Town or CityUpdated city
Postal CodeUpdated postal code
Phone Unique IDUnique ID for the phone record to update
Phone NumberUpdated phone number
Phone TypeUpdated phone type
From DateEffective start date for the phone record

Response

Upon successful update, the action returns the updated worker details.


Get All Workers

Retrieves a list of workers from Oracle Fusion HCM. This action can be leveraged by Leena AI Orchestrator/Agent to list workers with various filtering and expansion options.

Input Parameters

Here are the input parameters required to set up this action:

All parameters are optional for this action.

Optional
NameDescription
Effective DateThe effective date for the query
ExpandChild resources to expand (e.g., names, emails, phones)
FieldsSpecific fields to include in the response
LimitMaximum number of records to return
OffsetNumber of records to skip
Order ByField to order results by
Sort OrderSort direction (ascending or descending)
Only DataExclude links and metadata from the response

Response

The action returns a list of worker records, each containing worker details, employment information, and any expanded child resources.


Get Worker By Id

Retrieves a specific worker's details by their unique identifier.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Worker IDThe unique identifier of the worker to retrieve
Optional
NameDescription
ExpandChild resources to expand in the response
Effective DateThe effective date for the query
FieldsSpecific fields to include in the response
Only DataExclude links and metadata from the response

Response

The action returns the complete worker record including personal information, employment details, and any expanded child resources.


Terminate Worker

Terminates a worker's employment in Oracle Fusion HCM. The Agent can leverage the skill (workflow), which has been designed to process a termination, once the user provides the necessary details.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Worker IDThe unique identifier of the worker to terminate
Period of Service IDThe period of service identifier for the termination
Action CodeThe termination action code
Termination DateThe effective date of termination
Optional
NameDescription
Date of DeathDate of death (applicable if action code is Death)
Recommended for RehireWhether the worker is recommended for rehire

Response

Upon successful termination, the action returns the termination confirmation and updated worker status.


Benefits

Get Enrollment Opportunities

Retrieves benefit enrollment opportunities available for workers in Oracle Fusion HCM.

Input Parameters

Here are the input parameters required to set up this action:

All parameters are optional for this action.

Optional
NameDescription
Person NumberFilter by a specific person number
FieldsSpecific fields to include in the response
ExpandChild resources to expand
LimitMaximum number of records to return
OffsetNumber of records to skip
Effective DateThe effective date for the query
Only DataExclude links and metadata from the response

Response

The action returns a list of enrollment opportunities including plan types, coverage options, and eligibility information.


Get Benefit Enrollments

Retrieves benefit enrollment records from Oracle Fusion HCM.

Input Parameters

Here are the input parameters required to set up this action:

All parameters are optional for this action.

Optional
NameDescription
Person IDFilter by a specific person
Plan Type IDFilter by a specific benefit plan type
LimitMaximum number of records to return
OffsetNumber of records to skip
ExpandExpand child resources in the response

Response

The action returns benefit enrollment records including plan details, coverage levels, and enrollment status.


Get Enrollment by ID

Retrieves a specific benefit enrollment record by person ID.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Person IDThe person whose enrollment record is to be retrieved
Optional
NameDescription
Plan Type IDFilter by a specific benefit plan type
Enrollment Result IDFilter by a specific enrollment result
ExpandExpand child resources in the response

Response

The action returns the enrollment record details including plan information, coverage, and enrollment status.


Notifications & Tasks

Get Notification Content

Retrieves the content of a business process notification (approval task) from Oracle Fusion HCM. This action enables the Agent to fetch pending notification details for display or processing.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Task IDThe unique identifier of the notification/task

Response

The action returns the notification content including task details, requester information, and approval context.


Perform Task Action

Performs an approval action on a pending business process task in Oracle Fusion HCM. The Agent can leverage this action to approve, reject, or take other actions on pending workflow tasks.

Input Parameters

Here are the input parameters required to set up this action:

Mandatory
NameDescription
Task IDThe pending task to perform the action on
Approval ActionThe action to perform. Options: Approve, Reject, Request Information, Withdraw, Push Back
Optional
NameDescription
CommentsNotes or comments for the audit trail

Response

Upon successful execution, the action returns the task action result including updated task status and confirmation.