Represents relatives (spr) in Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET sprRelatives | sprRelatives | Gets a relative object. |
DELETE sprRelatives | none | Deletes a relative object. |
POST sprRelatives | sprRelatives | Creates a relative object. |
PATCH sprRelatives | sprRelatives | Updates a relative object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
sprEmployee | sprEmployee | Gets the employee associated with the relative. |
sprRelativesHistory | Collection(sprRelativeHistory) | Gets the history of the relative. |
Properties
Property | Type | Description | Relation to |
---|---|---|---|
id | Guid | Specifies the relative's ID. Non-editable. | |
employeeNumber | String[20] | Specifies the employee's number. | sprEmployees.number |
employeeId | Guid | Specifies the employee's ID. | sprEmployees.id |
lineNo | Int32 | Specifies the line number. | |
type | NAV.sprRelativeType | Specifies the relative's type. It can be: 0- " " 1- Daughter 2- Son 3- Other 4- Child 5- Emergency Contract |
|
firstName | String[30] | Specifies the relative's first name. | |
surname | String[30] | Specifies the relative's surname. | |
dateOfBirth | Date | Specifies the relative's date of birth. | |
personalNo | String[20] | Specifies the relative's personal number. | |
phoneNo | String[]30 | Specifies the relative's phone number. | |
String[80] | Specifies the relative's email address. | ||
lastModifiedDateTime | DateTimeOffset | Specifies the relative's last modified date. Read-Only. |
Examples
Create sprRelatives
POST URI: /companies({{companyId}})/sprRelatives
Request
{
"employeeId": "{{employeeId}}",
"type": "4",
"firstName": "Vaikas 1",
"surname": "Vaikauskas 1",
"dateOfBirth": "2010-01-01",
"personalNo": "31001017777",
"phoneNo": "866677777",
"eMail": "866677777@test.lt"
}