In this chapter, you will learn the following:
You define push notifications in Acumatica ERP in the following scenarios:
To work with Acumatica ERP push notifications, you need to configure the following items:
The following diagram illustrates the sending of a push notification and shows the items that you need to configure to receive push notifications when changes occur.
The data query can be defined by either a generic inquiry or a built-in query definition (which is a data query defined in code). For details on generic inquiries, see Managing Generic Inquiries. For information on how to create a built-in query definition, see Push Notifications: To Create a Built-In Query Definition. You can define multiple queries for one notification destination.
The data query should adhere to the recommendations described in Push Notifications: Recommendations for the Data Queries.
The following predefined notification destinations are provided: webhook (HTTP address), message queue, SignalR hub, and commerce push destination. For more information on the predefined notification destinations, see Push Notifications: Destinations. You can also create your own destination type, as described in Push Notifications: To Create a Custom Destination Type.
You should configure your external application so that it can process the notifications and extract the information about the data changes. Acumatica ERP sends notifications to notification destinations in JSON format. For details on the format of the notifications, see Push Notifications: Format. If your application watches notifications in the SignalR hub, you need to connect to the hub, as described in Push Notifications: To Connect to the SignalR Hub.
In the definition of the push notification on the Push Notifications (SM302000) form, you specify the notification destination and the data queries for which the notifications should be sent. You can also specify particular fields that the system should track in the results of the data queries.
If an attribute is included in the list of fields that the system should track, the returned inserted and deleted rows contain null for the value of the attribute that was not changed. For details, see Push Notifications: Format.