Assistance with Webhook Extension #1258
Replies: 1 comment
-
Hi @wesleypearson, 1. logging
2. function parameters your script is expecting Additional objects (like ticket) can be found in the root scope. This means that you can reference the scope variable function executeScript(scriptEvent) {
if (!ticket.additionalInfo || !ticket.additionalInfo.phoneNumber) {
log.warn('No phone number found for ticket ' + ticket.id);
return;
}
[...]
} 3. scope object as you can see in the documentation, https://alf.io/docs/reference/extensions/reference/ticket/#ticket-checked-in if (!ticket.additionalInfo || !ticket.additionalInfo.phoneNumber) {
log.warn('No phone number found for ticket ' + ticket.id);
return;
} will always print "No phone number found for ticket", because the Ticket object doesn't have that information. Please open an issue and we'll try to add In the meantime, what you can do is:
|
Beta Was this translation helpful? Give feedback.
-
Hello! Im attempting to write a general web hook for N8N to allow easy external processing,
It is showing in the logs its processing but Im not receiving any data.
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions