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
Hi,
when we enable Actions for the Notifications in Work Zone, Work Zone calls the
ExecuteActionaction in our CAP app withNotificationIdandActionId. In order to track theNotificationIdsent from Work Zone to the CAP application, we need to pass our own ID asIdwhen sending the Notification to Work Zone.From the Work Zone documentation (Notification Properties):
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