Represents absence entries (spr) in Business Central.
Methods
Method |
Return Type |
Description |
GET sprAbsenceEntries |
sprAbsenceEntries |
Gets an absence entry object. |
DELETE sprAbsenceEntries |
none |
Deletes an absence entry object. |
POST sprAbsenceEntries |
sprAbsenceEntries |
Creates an absence entry object. |
PATCH sprAbsenceEntries |
sprAbsenceEntries |
Updates an absence entry object. |
Navigation
Navigation |
Return Type |
Description |
sprEmployees |
sprEmployee |
Gets the employee associated with the absence entry. |
sprActivityCodes |
sprActivityCode |
Gets the activity code associated with the absence entry. |
sprContracts |
sprContract |
Gets the contract associated with the absence entry. |
sprAllocations |
sprAllocation |
Gets the allocation associated with the absence entry. |
sprBusinessTripLocations |
sprBusinessTripLocation |
Gets the business trip location associated with the absence entry. |
sprBusinessTripAims |
sprBusinessTripAim |
Gets the business trip aim associated with the absence entry. |
sprDimensionSetLines |
Collection(sprDimensionSetLine) |
Gets the dimension set lines of the absence entry. |
Properties
Property |
Type |
Description |
Relation to |
id |
Guid |
Specifies the absence entry's ID. Non-editable. Non-editable. |
|
entryNumber |
Int32 |
Specifies the absence entry's number. |
|
employeeId |
Guid |
Specifies the employee's ID. |
sprEmployees.id |
employeeNumber |
String[20] |
Specifies the employee's number. |
sprEmployees.number |
activityId |
Guid |
Specifies the activity's ID. |
sprActivityCodes.id |
activityCode |
String[10] |
Specifies the activity's code. |
sprActivityCodes.code |
startDate |
Date |
Specifies the absence entry's start date. |
|
endDate |
Date |
Specifies the absence entry's end date. |
|
contractId |
Guid |
Specifies the contract's ID. |
sprContracts.id |
contractNumber |
String[20] |
Specifies the contract's number. |
sprContracts.number |
allocationId |
Guid |
Specifies the allocation's ID. |
sprAllocations.id |
allocationNumber |
Int32 |
Specifies the allocation's number. |
sprAllocations.number |
extensionOfAbsenceId |
Guid |
Specifies the absence's ID. |
sprAbsenceEntries.id |
extensionOfAbsenceEntryNumber |
Int32 |
Specifies the absence's entry number. |
sprAbsenceEntries.number |
sickNotePostDate |
Date |
Specifies the absence's entry sick note post date. |
|
busTripLocationCode |
String[20] |
Specifies the business trip's location code. |
sprBusinessTripLocations.code |
busTripLocationId |
Guid |
Specifies the business trip's location ID. |
sprBusinessTripLocations.id |
busTripTown |
String[30] |
Specifies the business trip's town. |
|
busTripAimCode |
String[20] |
Specifies the business trip aim's code. |
sprBusinessTripAims.code |
busTripAimId |
Guid |
Specifies the business trip aim's ID. |
sprBusinessTripAims.id |
busTripDailyRate |
Decimal |
Specifies the business trip's daily rate. |
|
busTripDailyAllowance |
Decimal |
Specifies the business trip's daily allowance. |
|
lastModifiedDateTime |
DateTimeOffset |
Specifies the absence entry's last modified date. Read-Only. |
|
Examples
Create sprAbsenceEntries
POST URI: /companies({{companyId}})/sprAbsenceEntries
Request
{
"employeeId": "{{employeeId}}",
"employeeNumber": "{{employeeNumber}}",
"activityCode": "K",
"startDate": "2023-06-10",
"endDate": "2023-06-20",
"sickNotePostDate": "0001-01-01",
"busTripLocationCode": "",
"busTripTown": "",
"busTripAimCode": "",
"busTripDailyRate": 0,
"busTripDailyAllowance": 0
}