Article
Notify an employee in the notification panel using a business process
10:19 Nov 25, 2024
Example
Create the following business process: display a notification in the notification panel to an employee that was added to the list of participants in an activity.
Business process diagram elements:
- Incoming signal that adds an activity participant: when a new participant is added to the activity, activate the signal and start the business process.
-
Add data: create a notification in the "Notification" object to the participant.
To do this:
- Place the Signal element of the Initial events group on the diagram and call it "Participant added". Activate the element when a contact is added to the Participants expanded list of an activity.
- Set up the signal parameters (Fig. 1):
- Set "Activity participant" in the Object parameter.
- Select "Record added" in the Which event should trigger the signal parameter.
- Set "Participant = current contact" in the The added record must meet filter conditions area.
Fig. 1 Signal element
- Place an Add data element of the System actions group between the Signal and Terminate elements and call it "Add notification."
- Set up the element parameters (Fig. 2):
- Select "Notification" in the Which object to add data to? parameter.
- Select "One record" in the What is the data adding mode? parameter.
- Click Add field in the Which column values to set? parameter. This opens a window.
- Select "Created by," "IsRead," "NotificationType," "Object," "Source," "Time," "Title," "To," and "Unique caption Id" columns → Save.
- Set Created by to Lookup value → Supervisor.
- Set IsRead to Boolean value → "False."
- Set NotificationType to Lookup value → "Notification."
- Set Object to Lookup value → "Activity."
- Set Source to Lookup value → "Created by."
- Set Time to Date and time → "Current date and time."
- Set Title to "You were added as a participant to an activity."
- Set To to "Current user contact."
- Set Unique caption Id to Process parameter → Participant added → "Unique identifier of record."
Fig. 2 Add data element
- Save the business process.
As a result of the business process, every time a user contact is added as a participant to an activity, they will receive the corresponding message to the System messages sidebar of the notification panel.