When defining conditions for a notification template (or scenario), an element is required: a property of the client, the appointment, the to-be-delivered service, the underlying order(-moment), the location, the employee, or the to-be-sent message. This page lists all properties that can be used, together with their ‘element name’. The element name is needed when writing the condition.
Client data
| Personal details of the client |
Element name |
| Initials |
@Model.Client.Initials |
| First name |
@Model.Client.FirstName |
Full last name in the format as known by Serviceware, e.g.:
Maiden name – Partner name |
@Model.Client.LastName |
| Maiden name (or for a man: own last name) |
@Model.Client.OwnName |
| Partner’s last name |
@Model.Client.PartnerName |
| Client number |
@Model.Client.Number |
| SSN |
@Model.Client.SSN |
| Gender |
@Model.Client.Gender |
| Date of birth |
@Model.Client.DOB.Value.ToString(“dd-MM-yyyy”) |
| Date of death |
@Model.Client.DOD.Value.ToString(“dd-MM-yyyy”) |
| Address of the client (= standard address) (7.13 and up: operational default address) |
Element name |
| Street name |
@Model.Client.Address.Street |
| House number |
@Model.Client.Address.Number |
| House number addition |
@Model.Client.Address.NumberPostfix |
| Postal code |
@Model.Client.Address.PostalCode |
| City |
@Model.Client.Address.City |
| State |
@Model.Client.Address.State |
| Country |
@Model.Client.Address.Country |
Location data
| General details of the location |
Element name |
| Location name |
@Model.Location.Name |
| Location code7.8 and up |
@Model.Location.Code |
Employee data
| Personal details of the employee |
Element name |
| First name |
@Model.Employee.FirstName |
| Last name |
@Model.Employee.Lastname |
| Initials |
@Model.Employee.Initials |
| Gender7.10 and up |
@Model.Employee.Gender |
| Function7.10 and up |
@Model.Employee.Function |
Appointment data
| General details of the appointment |
Element name |
| Start date |
@Model.Appointment.StartDate.ToString(“dd-MM-yyyy”) |
| Start time |
@Model.Appointment.StartTime.ToString(“hh\\:mm”) |
| End date |
@Model.Appointment.EndDate.ToString(“dd-MM-yyyy”) |
| End time |
@Model.Appointment.EndTime.ToString(“hh\\:mm”) |
| Duration of the appointment |
@Model.Appointment.Duration.ToString() |
| (Booking)code that is generated for the appointment7.14.1 and up |
@Model.Appointment.Code |
| Status of the appointment |
@Model.Appointment.Status |
| Reason why appointment failed |
@Model.Appointment.FailedReason |
| Description of the appointment |
@Model.Appointment.Description |
| External source of the appointment |
@Model.Appointment.ExternalSource |
| Name of service that needs to be carried out (in case of SC appointment) |
@Model.Service.Name |
| Code of the service (in case of SC appointment)7.8 and up |
@Model.Service.Code |
| Activities |
@Model.Activities |
| Location of the appointment changed |
@Model.Appointment.LocationChanged |
| Start date of the appointment changed |
@Model.Appointment.StartDateChanged |
| Start time of the appointment changed |
@Model.Appointment.StartTimeChanged |
| End date of the appointment changed |
@Model.Appointment.EndDateChanged |
| End date of the appointment changed |
@Model.Appointment.EndTimeChanged |
| Execution address of the appointment (only for nextGen appointments) |
Element name |
| Street name |
@Model.Appointment.Address.Street |
| House number |
@Model.Appointment.Address.Number |
| House number addition |
@Model.Appointment.Address.NumberPostfix |
| Postal code |
@Model.Appointment.Address.PostalCode |
| City |
@Model.Appointment.Address.City |
| State |
@Model.Appointment.Address.State |
| Country |
@Model.Appointment.Address.Country |
Attention!
For classic appointments (planned on day- or week planning boards), be sure to never use the appointment address. Please use the client address instead.
| Notification address of the appointment |
Element name |
| Street name |
@Model.Communication.Address.Street |
| House number |
@Model.Communication.Address.Number |
| House number addition |
@Model.Communication.Address.NumberPostfix |
| Postal code |
@Model.Communication.Address.PostalCode |
| City |
@Model.Communication.Address.City |
| State |
@Model.Communication.Address.State |
| Country |
@Model.Communication.Address.Country |
| Phone number |
@Model.Communication.PhoneNumber |
| Email address |
@Model.Communication.Email |
Order data
| General details of the order |
Element name |
| Order number |
@Model.ServiceSchedule.Number |
| Order subject7.8 and up |
@Model.ServiceSchedule.Subject |
| Order description |
@Model.ServiceSchedule.Description |
| Name of the contractor of the order |
@Model.ServiceSchedule.ContractorName |
| Code of the contractor7.8 and up |
@Model.ServiceSchedule.ContractorCode |
| Name of the contractor’s organization |
@Model.ServiceSchedule.ContractorOrganization |
| Code of contractor’s organization7.8 &up |
@Model.ServiceSchedule.ContractorOrganizationCode |
| External source of the order |
@Model.ServiceSchedule.ExternalSource |
| Name of the service of the order |
@Model.ServiceSchedule.Service |
| Code of the service |
@Model.ServiceSchedule.ServiceCode |
| Activities of the order |
@Model.ServiceSchedule.Activities |
| Name of the execution location of the order |
@Model.ServiceSchedule.Location.Name |
| Code of the execution location of the order7.8 and up |
@Model.ServiceSchedule.Location.Code |
| Execution address of the order |
Element name |
| Street name |
@Model.ServiceSchedule.Address.Street |
| House number |
@Model.ServiceSchedule.Address.Number |
| House number addition |
@Model.ServiceSchedule.Address.NumberPostfix |
| Postal code |
@Model.ServiceSchedule.Address.PostalCode |
| City |
@Model.ServiceSchedule.Address.City |
| State |
@Model.ServiceSchedule.Address.State |
| Country |
@Model.ServiceSchedule.Address.Country |
| Notification address of the order |
Element name |
| Street name |
@Model.ServiceSchedule.NotificationAddress. Street |
| House number |
@Model.ServiceSchedule.NotificationAddress.Number |
| House number addition |
@Model.ServiceSchedule.NotificationAddress. NumberPostfix |
| Postal code |
@Model.ServiceSchedule.NotificationAddress. PostalCode |
| City |
@Model.ServiceSchedule.NotificationAddress.City |
| State |
@Model.ServiceSchedule.NotificationAddress.State |
| Country |
@Model.ServiceSchedule.NotificationAddress.Country |
| Phone number |
@Model.ServiceSchedule.NotificationAddress.Email |
| Email address |
@Model.ServiceSchedule.NotificationAddress. Phonenumber |
Order-moment data
| General details of the moment |
Element name |
| Start date of the first moment of the order |
@Model.Order.StartDate |
| End date of the last moment of the order |
@Model.Order.EndDate |
| The date which the order notification message was sent on. Can be shown in the order notification reminder message. |
@Model.Order.NotificationDate |
Service contract data
| General details of the service contract |
Element name |
| Contractor on service contract level |
@Model.ServiceContract.ContractorName |
| Organization of the contractor on service contract level |
@Model.ServiceContract.ContractorOrganization |
| External source of the service contract |
@Model.ServiceContract.ExternalSource |
Message details
| General information of the message |
Element name |
| Date which the message was generated on |
@Model.Message.CreationDate |
| Template which the message was based on |
@Model.Message.TemplateName |
| Date from which on the message may be sent automatically |
@Model.Message.DelayedTo |