In all forms and when using custom statuses, you may need to use variables, for example the intervention date or the technician who closed the intervention.
Variables are enclosed in curly braces { }.
Variables related to the system
Code | Usage |
---|---|
{system.dateTimeNow} | the current date and time |
{system.isEnvironmentProduction} | if you are on app.cadulis.com, returns yes |
if you are on integration.app.cadulis |
Variables related to the activity are defined by {intervention.*}
Code | Usage |
---|---|
{intervention.reference} | the intervention reference |
{intervention.date} | the intervention date (scheduled date) |
{intervention.address} | the intervention address |
{intervention.address.additional} | address additional information |
{intervention.comment} | comment on the intervention |
{intervention.duration} | intervention duration (scheduled duration) |
{intervention.durationSeconds} | duration in seconds |
{intervention.status} | has the value pending, cancelled, or terminated |
{intervention.custom.*} | for custom fields |
Variables related to the customer: {intervention.customer.*}
Code | Usage |
---|---|
{intervention.customer.reference} | customer reference |
{intervention.customer.name} | customer name |
{intervention.customer.mobile} | mobile phone number |
{intervention.customer.phone} | landline phone number |
{intervention.customer.custom.*} | for custom fields |
Variables related to the parent intervention: {intervention.parent.*}
When an intervention is created by triggering from another intervention, the latter is called the parent intervention. For example, if the creation of an intervention triggers a call or if a failed closure triggers a new intervention.
Code | Usage |
---|---|
{intervention.parent.date} | the parent intervention date |
{intervention.parent.address} | the parent intervention address |
{intervention.parent.address.additional} | address additional information |
{intervention.parent.custom.*} | for custom fields of the intervention form |
{intervention.parent.report.custom.*} | for custom fields of the closure form |
Variables related to the closure of the intervention: {intervention.report.*}
Code | Usage |
---|---|
{intervention.report.comment} | closure comment |
{intervention.report.status} | takes the value OK or KO |
{intervention.report.custom.*} | for custom fields of the closure form |
For these last three categories, you can also use the custom fields you have defined (in forms, intervention or customer forms),
by using {intervention.*.custom.thecode}
and replacing “thecode” with the code you defined when configuring your field.