Node events
This node allows tracking events from the Events module, which is useful for integration with external services.
Node Events
Settings
1. Name
Field for specifying the name of the node.
The name is displayed in the workspace and helps easily identify the node.
If left empty, the node will be called events
.
Example:
- Node name:
Order Created
2. Set
Specifies the name of the parameter where the selected event will be recorded.
The node adds the specified event to the msg
object under the given name.
Example:
- Set:
orderEvent
3. Events
A dropdown list containing events defined in the Events
module.
Here you can select the event that will be used by the node.
Example:
- Event:
Order Created
Example of Node Operation
Example 1: Generating an Order Event
Node Settings:
- Name:
Order Event
- Set:
orderEvent
- Events:
Order Created
Result:
After execution, the node will add the selected event to the message:
Output Message:
{
"orderEvent": {
"order": {
"id": 19,
"createdDate": "2024-12-04T13:16:15.144Z",
"statusIdentifier": "order_created_status",
"formIdentifier": "order_form",
"formData": [
{
"marker": "name_attr",
"value": "Alex",
"type": "string"
}
],
"attributeSetIdentifier": "order_attrs",
"totalSum": "2.00",
"currency": "usd",
"paymentAccountIdentifier": "paypal",
"paymentAccountLocalizeInfos": {
"en_US": {
"title": "PayPal"
}
},
"products": [
{
"id": 1,
"title": "T-Short",
"sku": null,
"previewImage": null,
"price": 1,
"quantity": 2
}
],
"isCompleted": false
}
}
}