Pular para o conteúdo principal
ExemploIntermediário1 min de leituraAtualizado em Apr 30, 2026
hookafter-createcontactsnotificationsevent-driven

Hook de Novo Contato

Workflow acionado por hook que é executado após um contato ser criado

Baixar ZIP · 0.7 KB

JSON Completo

Clique 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
Regras1
Canalany
Versão1.0.0
Baixar ZIP
hook-afterCreate0.7 KB
Nesta página