Skip to content

Support "Id" property as a low-level API property to Work Zones Notification API to enable tracking of Notification IDsΒ #95

@sebastianesch

Description

@sebastianesch

Hi,

when we enable Actions for the Notifications in Work Zone, Work Zone calls the ExecuteAction action in our CAP app with NotificationId and ActionId. In order to track the NotificationId sent from Work Zone to the CAP application, we need to pass our own ID as Id when sending the Notification to Work Zone.

From the Work Zone documentation (Notification Properties):

Field Mandatory Details Max Length in Characters
Id No Universally unique identifier (UUID) for the notification – used to identify notifications if actions are performed.If the ID isn't provided, it will be generated by the notification service. 32

POST Call to ExecuteAction from Work Zone to CAP:

{
    "NotificationId": "42010aee-2870-1eda-aaab-f67163e06fd3", 
    "ActionId": "0002"
}

Currently the Id of a Notification is not part of the supported low-level API properties, supported here: https://github.com/cap-js/notifications/blob/main/lib/utils.js#L179

Kind regards,
Sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions