To Add Push Notification Definitions to a Project

You can add any number of push notification definitions to a customization project as PushNotification items. A PushNotification item contains all the data required to recreate the corresponding push notification definition in any instance of MYOB Advanced.

To add a push notification definition to the project, perform the following actions:

  1. Open the customization project in the Customization Project Editor. (See To Open a Project for details.)
  2. In the navigation pane, click Push Notifications to open the Push Notifications page.
  3. On the page toolbar, click Add New Record (+).
  4. In the list of push notification definitions in the Add Push Notifications dialog box, which has opened, select the unlabeled check box in the row of each definition that you want to include in the project.
    Note: The Add Push Notifications dialog box displays all the push notification definitions that are configured in your instance of MYOB Advanced.
  5. Click OK to add each selected notification definition to the page table and close the dialog box.
  6. On the page toolbar, click Save to save your changes to the customization project.
  7. For each data query that defines the data changes for which MYOB Advanced should send notifications in the added push notification definition or definitions, do one of the following:
    • If the data query has been defined with a generic inquiry, add the generic inquiry to the customization project, as described in To Add a Generic Inquiry to a Project.
    • If the data query has been defined with a built-in definition, make sure that the built-in definition is available in the customization project: The built-in definition can be added as either a Code item (if the definition is added directly to the customization project as a class) or a File item (if the definition is added to the customization project as a class in a DLL file).
  8. Optional: In the Customization Project Editor, click File > Edit Project Items on the menu. In the Project Items table of the Item XML Editor, verify that the system has added to the project the data from the database for each selected push notification definition. For details on the Item XML Editor, see Edit Project Items.