In all forms and when using custom statuses, you may need to use variables, for example the intervention date or the field worker 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, 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} | the customer reference |
| {intervention.customer.name} | the customer name |
| {intervention.customer.mobile} | the mobile phone number |
| {intervention.customer.phone} | the landline phone number |
| {intervention.customer.custom.*} | for custom fields |
Variables related to the parent intervention: {intervention.parent.*}
When an intervention is created by a trigger on another intervention, the latter is called the parent intervention. For example, if creating an intervention triggers a call, or if closing an intervention as failed triggers a new intervention.
| Code | Usage |
|---|---|
| {intervention.parent.date} | the parent intervention date |
| {intervention.parent.address} | the parent intervention address |
| {intervention.parent.address.additional} | the parent intervention 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 intervention closure: {intervention.report.*}
| Code | Usage |
|---|---|
| {intervention.report.comment} | closure comment |
| {intervention.report.status} | has 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, or in the intervention or customer form),
by using {intervention.*.custom.thecode} and replacing “thecode” with the code you set when configuring your field.