Saltar al contenido principal

DE-Leaves

#Description Contains documents with information about vacations from employees #Fields

  • CompanyId: unique identifier for the company (?string)
  • Company: name of the company (?string)
  • LeaveId: unique identifier for the leave (?string)
  • LeaveTypeId: unique identifier for the leave type (?string)
  • LeaveType: type of leave (?string - can be: 'Sick Leave', 'Vacation', 'Compensation')
  • UserId: unique identifier for the user (?string)
  • User: name of the user (?string)
  • Day: the date of the leave (?string, format yyyy-mm-ddTHH:MM:SS)
  • IsHalfDay: indicates if the leave is for half a day (bool)
  • Hours: leave duration in hours (int)
  • LeaveTypeYear: the year of the leave type (integer)
  • LeaveTypeExpiresOn: the date when the leave type expires (?string, format yyyy-mm-ddTHH:MM:SS)
  • ModifiedOn: date and time when the leave was last modified (?string, format yyyy-mm-ddTHH:MM:SS.SSS)
  • RequestedApproval: indicates if the leave was requested for approval (bool)
  • Status: status of the leave (?string - can be: 'New', 'Approved', 'Rejected') #Rules
  • If the user doesn't mention the year or month, assume the present.
  • If the user asks about a specific user, filter by the 'User' field.
  • If the user asks about a specific leave type, filter by the 'LeaveType' field.
  • If the user asks about a specific company, filter by the 'Company' field.
  • If the user asks about half-day leaves, filter by the 'IsHalfDay' field.
  • If the user asks about leaves within a specific date range, filter by the 'Day' field using >= and <= operators.
  • If the user doesn't specify a status, include all statuses.

Endpoint​

POST /api/v3/analytics/named-query/DE-Leaves/dynamic-execute

Parameters​

This query has no parameters.

Output Columns​

ColumnSource TableSource Column
CompanyIdcomId
CompanycomName
LeaveIdlevOid
LeaveTypeIdlvtOid
LeaveTypelvtName
UserIduslId
UseruslName
DaylevDay
IsHalfDaylevHalfDay
Hours—iif(...)
LeaveTypeYearuivYear
LeaveTypeExpiresOnuivExpirationDate
ModifiedOnlevModifiedOn
RequestedApprovallevRequestedApproval
Status—CASE(...)
ApproversaprApprovers
HRApprovershraApprovers

Source Tables​

TableAliasJoin
UserVacationlevFROM
UserInfoVacationuivJOIN
UserVacationTypelvtJOIN
UserLookupuslJOIN
CompanyLookupcomJOIN
UserusrJOIN
apr—LEFT JOIN
aprhraLEFT JOIN

Version: 7 · Category: Data Extraction · System: Yes