如何通过在 REST API 查询参数中发送两个日期从 HCM Fusion 获取员工缺勤数据

问题描述

我想获取员工过去 2 个月和未来 2 个月的缺勤数据。

REST API:https://host:port/hcmRestApi/resources/11.13.18.05/absences

https://host:port/hcmRestApi/resources/11.13.18.05/absences?q=startDate 介于“2018-09-22”和“2018-09-25”之间 https://host:port/hcmRestApi/resources/11.13.18.05/absences?q=startDate>2018-09-22;startDate

尝试了不同的选择,但没有运气。请指教!

谢谢!

解决方法

这个 REST API 帮助我使用两个日期获取员工缺勤数据。

https://xxxxxxx.oraclecloud.com:443/hcmRestApi/resources/11.13.18.05/absences?finder=findByAbsStartAndEndDate;startDate=2021-04-01,endDate=2021-04-30&orderBy=personId:asc

更多详情请参考链接 https://docs.oracle.com/en/cloud/saas/human-resources/21b/farws/op-absences-get.html

谢谢!