ExternalId added to TimesheetLine API


#1

When creating and updating timesheetlines via the bulk timesheet API, you can now specify an “ExternalId” property to be saved with the TimesheetLine.

This means you can track TimesheetLines stored in KeyPay against an Id provided by your source system.

A sample post with an externalID specified is below

{
 
  "fromDate": "2013-07-01",
  "toDate": "2013-07-30",
  "approved": true,
  "timesheets": { 
	"1":[{
        "employeeId": 1,
        "startTime": "2013-07-28T06:30:00",
        "endTime": "2013-07-28T15:00:00",
      "externalId": "MyExternalID", //you can supply your own externalID
        "units": null,
        "workTypeId": "1",
        "locationId": null,
        "comments": null,
        "breaks": [
            {
                "startTime": "2013-07-28T10:30:00",
                "endTime": "2013-07-28T11:00:00"
            }
        ],
        "rate": null,
        "leaveCategoryId": null,
        "payCategoryId": null,
        "classificationId": null
    }]
}