You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

Loading absences via REST API

edited Feb 20, 2020 5:21PM in Workforce Management 13 comments

Summary

Loading absences via REST API

Content

Hi Team

We are loading absences via the create absence REST API.

Below is the pay load. 

{
                "personNumber": "100008",
                "employer": "CCS",
                "absenceType": "CABS_Annual_Vacation_Leave_Type",
                "startDate": "2020-05-07",
                "endDate": "2020-05-07",
                "startDateDuration" : "4.000",
                "endDateDuration": "4.000",
                "duration": "4.000",
                 "absenceStatusCd": "SUBMITTED",
                 "approvalStatusCd": "AWAITING"
}

 

When i load this API, i see the below 2 issues.

1. The absences does not go to approval hierarchy, it gets auto approved ( I ensured that the bypass approval is not checked ). Should i set any other parameter for absence approvals?

2. The duration of absence is not reflected in UI ( see screenshot)

I am using an elapsed schedule for employee, so not sure what to give in start and end duration. ( My employee is on a 4 hr work schedule, elapsed)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!