
New Appointment (${ svmx_name })
Start Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_start_datetime']) })
End Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_end_datetime']) })
|
|
ops.svmx_format_technician_data is a Max operation that takes a Groovy Hash object as the parameter. In the Hash parameter, the record and field values are required. The record value is the record that triggers the notification, for example, a newly created Appointment. The field parameter is the full identifier for the Start field in the Appointment object, for example, svmx_start_datetime. The code gets the Start field value from the relevant Appointment record and formats the values based on the technician's preferred time zone and format.
|
Update Appointment (${ svmx_name })
Start Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_start_datetime']) })
End Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_end_datetime']) })
Delete Appointment (${ svmx_name })
Start Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_start_datetime']) })
End Date/Time: (${ ops.svmx_format_technician_data(['record': record, 'field': 'svmx_end_datetime']) })