Represents absences (spr) in Business Central.
Methods
Method | Return Type | Description |
|---|---|---|
GET sprAbsences | sprAbsences | Gets an absence object. |
DELETE sprAbsences | none | Deletes an absence object. |
POST sprAbsences | sprAbsences | Creates an absence object. |
PATCH sprAbsences | sprAbsences | Updates an absence object. |
Properties
Property | Type | Specifies the absence’s ID. Non-editable. |
|---|---|---|
id | Guid | Specifies the absence’s ID. Non-editable. |
entryNumber | Int32 | Specifies the absence’s number. Non-editable. |
status | Enum | Specifies the absence’s status. Non-editable. |
employeeId | Guid | Specifies the employee’s ID. |
employeeNumber | String[20] | Specifies the employee's number. |
activityId | Guid | Specifies the activity's ID. |
activityCode | String[10] | Specifies the activity's code. |
startDate | Date | Specifies the absence entry's start date. |
endDate | Date | Specifies the absence entry's end date. |
contractSeqId | Guid | Specifies the contract sequence’s Id. |
contractSeqNumber | Int32 | Specifies the contract sequence’s number. |
extensionOfAbsenceId | Guid | Specifies the absence extension’s ID. |
extensionOfAbsenceNumber | Int32 | Specifies the absence extension’s number. |
sickNotePostDate | Date | Specifies the absence's entry sick note post date. |
busTripLocationCode | String[20] | Specifies the business trip's location code. |
busTripLocationId | Guid | Specifies the business trip's location ID. |
busTripTown | String[30] | Specifies the business trip's town. |
busTripAimCode | String[20] | Specifies the business trip aim's code. |
busTripAimId | Guid | Specifies the business trip aim's ID. |
busTripDailyRate | Decimal | Specifies the business trip's daily rate. |
busTripDailyAllowance | Decimal | Specifies the business trip's daily allowance. |
substituteWorkerNo | String[20] | Specifies the substitute worker’s number. |
expectedPaymentDate | Date | Specifies the expected payment’s date. |
paymentPreference | Enum | Specifies the payment’s preference. |
lastModifiedDateTime | DateTimeOffset | Specifies the absence entry's last modified date. Read-Only. |
Examples
GET sprAbsences
GET URI: /companies({{companyId}})/sprAbsences
Request
{
"id": "b77c1d61-97ce-f011-95c4-f0e130d6b777",
"entryNumber": 234,
"status": "Approved",
"employeeId": "a60396c8-eeac-f011-b3f2-d5e7f4941a08",
"employeeNumber": "139",
"activityId": "373d97d5-d07a-ec11-8fe6-af0704b1c711",
"activityCode": "A",
"startDate": "2025-09-16",
"endDate": "2025-09-18",
"contractSeqId": "68d9609b-c7b8-f011-afc5-9f7260dfd105",
"contractSeqNumber": 1,
"extensionOfAbsenceId": "00000000-0000-0000-0000-000000000000",
"extensionOfAbsenceNumber": 0,
"sickNotePostDate": "0001-01-01",
"busTripLocationCode": "",
"busTripLocationId": "00000000-0000-0000-0000-000000000000",
"busTripTown": "",
"busTripAimCode": "",
"busTripAimId": "00000000-0000-0000-0000-000000000000",
"busTripDailyRate": 0,
"busTripDailyAllowance": 0,
"substituteWorkerNo": "",
"expectedPaymentDate": "0001-01-01",
"paymentPreference": "Before_x0020_Vacations",
"lastModifiedDateTime": "2025-12-01T09:29:13.683Z"
}POST sprAbsences
POST URI: /companies({{companyId}})/sprAbsences
Request
{
"employeeId": "a60396c8-eeac-f011-b3f2-d5e7f4941a08",
"employeeNumber": "139",
"activityId": "373d97d5-d07a-ec11-8fe6-af0704b1c711",
"activityCode": "A",
"startDate": "2025-09-13",
"endDate": "2025-09-13",
"contractSeqId": "68d9609b-c7b8-f011-afc5-9f7260dfd105",
"contractSeqNumber": 1,
"extensionOfAbsenceId": "00000000-0000-0000-0000-000000000000",
"extensionOfAbsenceNumber": 0,
"sickNotePostDate": "0001-01-01",
"busTripLocationCode": "",
"busTripLocationId": "00000000-0000-0000-0000-000000000000",
"busTripTown": "",
"busTripAimCode": "",
"busTripAimId": "00000000-0000-0000-0000-000000000000",
"busTripDailyRate": 0,
"busTripDailyAllowance": 0,
"substituteWorkerNo": "",
"expectedPaymentDate": "0001-01-01",
"paymentPreference": "Before_x0020_Vacations"
}