Update Time Entry Statuses
You want to transfer approved time data or unapproved but appropriately prepared time entries to a third-party payroll application.You can extract time card and time entry data from the WFM time repository to load into the third-party scheduling and payroll applications by using the Time Cards Ready To Transfer Extracts process or the Time Entries Ready To Transfer Extracts process.
After successful extraction, update the entry statuses in the time repository to Transferred using the REST service. The next time the extract process runs, only the entries that weren't previously transferred or were changed since the previous extract are extracted.
Update the Transfer Status for Multiple Time Entries
Let's say that James has submitted a time card with two time entries and it's been approved. Both entries were extracted and transferred to a third-party payroll application. You now want to update the transfer status to SUCCESS.
Note:
This status shows that the extract was successful, but doesn't show in the time repository that the entries were transferred.Follow these steps to update the time entry status after transferring the entries to a third-party payroll application.
- Extract the appropriate data for payroll processing by using either the Time Cards Ready To Transfer Extracts process or the Time Entries Ready To Transfer Extracts process.
- Load the extracted data to your third-party payroll application.
- For each transferred time entry, send the updated status to Oracle Fusion Cloud
Time and Labor from the external payroll application using the
statusChangeRequests
REST service.- Perfom a POST operation on the
statusChangeRequests
REST resource by using the sample payload. - Verify the details returned in the response.
- Perfom a POST operation on the
- Update the statuses in the time repository by running the Update Extracted Time Cards from Ready to Transfer to Transferred process.
Example URL
Use this resource URL format.
POST
/hcmRestApi/resources/11.13.18.05/statusChangeRequests
Example Request
Here's an example of the request body in JSON format.
{
"sourceId": "85465",
"requestTimestamp": "2018-10-16T08:01:00.000+01:00",
"requestNumber":"REQ12342",
"statusChanges": [
{
"buildingBlockId": "300100078654",
"buildingBlockVersion": "1",
"consumerCode": "PYR",
"statusValue": "SUCCESS"
},
{
"buildingBlockId": "300100078655",
"buildingBlockVersion": "2",
"consumerCode": "PYR",
"statusValue": "SUCCESS"
}
]
}
Example Response
Here's an example of the response body in JSON format.
201
{
"statusRequestId": "300100095484"
"sourceId": "85465",
"requestTimestamp": "2018-10-16T08:01:00.000+01:00",
"requestStatus":"SUCCESS",
"requestNumber":"REQ12342" ,
"statusChanges": [
{
"buildingBlockId": "300100078654",
"buildingBlockVersion": "1",
"statusCode": "A_XFR_STATUS",
"consumerCode": "PYR",
"statusValue": "SUCCESS",
"requestStatus":"SUCCESS"
},
{
"buildingBlockId": "300100078655",
"buildingBlockVersion": "2",
"statusCode": "A_XFR_STATUS",
"consumerCode": "PYR",
"statusValue": "SUCCESS",
"requestStatus":"SUCCESS"
}
]
}