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

Loading absences via REST API

Received Response
202
Views
13
Comments
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!