NXT Triggers
The Event Object
The event object is passed to your trigger function when a trigger is fired.
The event object contains information about the event that fired the trigger.
Properties
Property | Description |
---|---|
event | The type of event that fired the trigger. Can be INSERT , UPDATE or DELETE . |
filter | The filter used to find the row that triggered the event. Handy to find the correct entry using GraphQL, as this can be passed directly as a filter expression. |
{ orderNo: { _eq: 123 } | |
primaryKeys | The primary keys of the row that triggered the event. |
{ orderNo: 123 } | |
changedByUser | The user that changed the row. |
companyNo | The company number of the company that the event occurred in. |
customerNo | The customer number of the customer that the event occurred in. |
timestamp | The timestamp of the event in UTC. |
notificationId | The ID of the notification that triggered the event. This is generated by Visma Connect. |
tableIdentifier | The table identifier of the table that the event occurred in. |