Excerpt |
---|
The Produce Notification Action produces a Picturepark Content Platform toast notification when the Business Rule conditions are met, e.g., inform about new images, inform about new Content Items with approved copyright information, or recalled Content Items. |
The Business Rule will execute, and if conditions are met, a notification toast is created. If the user is not logged in or does not see the notification (notification stays unread) Picturepark Content Platform sends out a notification email based on the users' user’s notification preferences.
...
Prerequisites
Existing notification that the Business Rule will show as toast in PictureparkContent Platform.
Open Settings
Open Business Rules
Switch to Notifications
...
Go to Settings > Business Rules.
From the Business Rules drop-down list, select Notifications.
...
Add a new notification.
ID is just for internal purposes.
Title and Message will be visible in the toast and notification center.
Create a collection of the found items - so your recipients can access the collection directly. Otherwise, the notification is more like an FYI.
...
You cannot format text in notifications, but you can format the notification text send sent out via email in Settings > Templates.
Specific
...
definitions
Type
...
ahead and select the notification to produce from the dropdown. You see the listed IDs of all available notifications.
Property | Value |
kind | UnassignContentPermissionSetsAction |
notificationId | The IDs of the notification to produce (which |
Content Platform will show as toast). This needs to be created upfront. | |
recipients | An array of recipients, which can be:
You can add also a combination of the above e.g. user Sandy Soluce, All users of the role "Editors external" and owners. |
Add User Variables to Notification
You can use the following variables in a Business Rule Notification in the title and/or the message:
$$triggeringUser.id$$
$$triggeringUser.firstName$$
$$triggeringUser.lastName$$
$$triggeringUser.emailAddress$$
You add the variable, which will be replaced with the user who triggered (started) the business rule. You will then see the user information in the notification. If a business rule is triggered through a schedule, the service user information is shown.
...
Show a Notification in
...
Content Platform to Owners, User Role A, and User Role B
Code Block | ||
---|---|---|
| ||
"actions": [ { "kind": "ProduceNotificationAction", "notificationId": "NewMaterialForResellers", "recipients": [ { "kind": "OwnerNotificationRecipient" }, { "kind": "UserRoleNotificationRecipient", "userRoleId": "4cc30fbf5dd44d06bdfdb8a7d530f8ab" }, { "kind": "UserRoleNotificationRecipient", "userRoleId": "5c302fdfc9234e49bb6ef5e997c6388e" } ], "traceRefId": null } ], |