Represents work schedule entries (spr) in Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET sprWorkScheduleEntries | sprWorkScheduleEntries | Gets a work schedule entry object. |
DELETE sprWorkScheduleEntries | none | Deletes a work schedule entry object. |
POST sprWorkScheduleEntries | sprWorkScheduleEntries | Creates a work schedule entry object. |
PATCH sprWorkScheduleEntries | sprWorkScheduleEntries | Updates a work schedule entry object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
sprEmployees | sprEmployee | Gets the employee associated with the work schedule entry. |
sprContracts | sprContract | Gets the contract associated with the work schedule entry. |
sprAllocations | sprAllocation | Gets the allocation associated with the work schedule entry. |
sprDimensionSetLines | Collection(sprDimensionSetLine) | Gets the dimension set lines of the work schedule entry. |
Properties
Property | Type | Description | Relation to |
---|---|---|---|
id | Guid | Specifies the work schedule entry's ID. Non-editable. | |
entryNumber | Int32 | Specifies the work schedule entry's number. | |
employeeNumber | String[20] | Specifies the employee's number. | sprEmployees.number |
contractNumber | String[20] | Specifies the contract's number. | sprContracts.number |
allocationNumber | Int32 | Specifies the allocation's number. | sprAllocations.number |
generalWScheduleCode | String[20] | Specifies the general work schedule's code. | generalWSchedule.code |
workScheduleFormulaCode | String[10] | Specifies the work schedule formula's code. | sprWorkScheduleFormulas.code |
date | Date | Specifies the work schedule entry's date. | |
dateOfContinuation | Date | Specifies the work schedule entry's date of continuation. | |
employed | Boolean | Specifies if the employee is employed. | |
activityCode | String[10] | Specifies the activity's code. | sprActivityCodes.code |
activityType | Option | Specifies the activity's type. It can be: 0- " " 1- Work 2- Non-Work 3- Business Trip 4- Vacation 5- Work Incapacity 6- Absence 7- Day off |
|
actualWork | Boolean | Specifies if the work is actual. | |
days | Decimal | Specifies the work schedule entry's number of days. | |
hours | Decimal | Specifies the work schedule entry's number of hours. | |
shiftEntryNumber | Int32 | Specifies the shift entry number. | sprShiftWorkScheduleEntry."entry no" |
continueOfShift | Boolean | Specifies if the shift is a continuation. | |
lastModifiedDateTime | DateTimeOffset | Specifies the work schedule entry's last modified date. Read-Only. |
Examples
Create refillWScheduleEntries
POST URI: /companies({{companyId}})/sprAllocations({{allocationId}})/Microsoft.NAV.refillWScheduleEntries
Request
{
"dateFrom" : "2022-11-01",
"dateTo":"2022-11-15"
}
Remove deleteWScheduleEntries
POST URI: /companies({{companyId}})/sprAllocations({{allocationId}})/Microsoft.NAV.deleteWScheduleEntries
Request
{
"dateFrom" : "2022-11-01",
"dateTo":"2022-11-15"
}