Saltar al contenido principal
EjemploIntermedio1 min de lecturaActualizado el Apr 30, 2026
hookafter-createcontactsnotificationsevent-driven

Hook de Nuevo Contacto

Workflow activado por hook que se ejecuta después de que se crea un contacto

Descargar ZIP · 0.7 KB

JSON Completo

Clic para expandir
{
"description": "Hook-triggered workflow that fires after a contact is created",
"tags": [
"hook",
"after-create",
"contacts",
"notifications",
"event-driven"
],
"document": {
"name": "New Contact Hook",
"enabled": true,
"log_level": "info",
"trigger": {
"type": "hook",
"hook": {
"model": "contacts",
"op": "afterCreate",
"filter": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
}
}
},
"steps": [
{
"condition": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/notifications/company/notification/create",
"actions/notifications/company/notification/create": {
"title": {
"expr": "'New contact: ' + doc.name",
"onFailure": "throw",
"resultType": "any"
},
"text": {
"expr": "'A new contact was added'",
"onFailure": "throw",
"resultType": "any"
}
}
}
}
]
}
}
TipoWorkflow
Reglas1
Canalany
Versión1.0.0
Descargar ZIP
hook-afterCreate0.7 KB
En esta página