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: 

  1. Incoming signal that adds an activity participant: when a new participant is added to the activity, activate the signal and start the business process. 
  2. Add data: create a notification in the "Notification" object to the participant. 

     

To do this: 

  1. 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. 
  2. Set up the signal parameters (Fig. 1): 
  3. Set "Activity participant" in the Object parameter. 
  4. Select "Record added" in the Which event should trigger the signal parameter. 
  5. Set "Participant = current contact" in the The added record must meet filter conditions area. 

Fig. 1 Signal element 

Fig. 1 Signal element 

  1. Place an Add data element of the System actions group between the Signal and Terminate elements and call it "Add notification." 
  2. Set up the element parameters (Fig. 2): 
  3. Select "Notification" in the Which object to add data to? parameter. 
  4. Select "One record" in the What is the data adding mode? parameter. 
  5. ClickAdd field in the Which column values to set? parameter. This opens a window. 
  6. Select "Created by," "IsRead," "NotificationType," "Object," "Source," "Time," "Title," "To," and "Unique caption Id" columns → Save
  7. SetCreated by to Lookup value → Supervisor
  8. SetIsRead to Boolean value → "False." 
  9. SetNotificationType to Lookup value → "Notification." 
  10. SetObject to Lookup value → "Activity." 
  11. SetSource to Lookup value → "Created by." 
  12. SetTime to Date and time → "Current date and time." 
  13. SetTitle to "You were added as a participant to an activity." 
  14. SetTo to "Current user contact." 
  15. SetUnique caption Id to Process parameter → Participant added → "Unique identifier of record." 

Fig. 2 Add data element 

 Fig. 2 Add data element
 

  1. 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. 

 

Like 2

Like

Share

0 comments
Show all comments

Hi community!

I enabled Approvals in the case section and added Approval in the business process. The problem is that counter is not increased in the notification panel but approval itself is shown in the "Approval notification".

Best regards, 

Jana

Like 0

Like

2 comments

Hello Jana,

 

As we replied in your case, the most likely reason for this behavior is a missing piece of code that marks your notifications as read.

 

Please check if you have MarkNotificationAsRead in your custom code in order for notifications to properly display.

 

You can copy the code from the NotificationService object in configuration files.

 

Thank you,

Artem.

Hello Artem,

 

We are also facing the same issue. Ours is not a custom code, all we do is create an approval task via business process. While the approval task is seen in notification center, the counter does not get increased.

 

Please advise

 

Test process creates an approval task for current user

After process is triggered, task appears for current user, but no badge or counter is seen as highlighted in yellow.

Show all comments

Dear community,

 

We have set an approval for our invoices. Our users get a notification to approve or reject an invoice. While using the notification center we noticed that the notifications are quite limited in information.

 

Question: How do we show more info in the notifications like contact name or invoice amount?

Now: https://prnt.sc/10jjew0

Idea: https://prnt.sc/10jjga5

 

 

Kind regards,

Yosef

Like 0

Like

2 comments

Hello Yosef,

 

First of all you will need to create a custom container that could contain all the needed information (this should be added to the replaced VisaNotificationsSchema view model and the example below is for cases):

[
            {
					"operation": "insert",
					"name": "NotificationItemCustomContainer",
					"parentName": "NotificationItemTopContainer",
					"propertyName": "items",
					"values": {
						"itemType": Terrasoft.ViewItemType.CONTAINER,
						"items": []
					}
				},
              {
					"operation": "insert",
					"name": "NotificationContactAdditionalInfo",
					"parentName": "NotificationItemCustomContainer",
					"propertyName": "items",
					"values": {
						"itemType": Terrasoft.ViewItemType.LABEL,
						"caption": {"bindTo": "getCustomContainerContent"},
						"visible": {bindTo: "getContentSchema"}
					}
				},
 
            ]

Then you will need to control the visibility of this container based on which schema does the visa notification represent:

getContentSchema: function(){
				var entityName = this.get("SchemaName");
                if (entityName=="Case"){
					return true;
                } else {
					return false;
                }
              },

And finally the most difficult task is to populate needed fields with proper values. The problem here is that the table that is called upon displaying visa notifications is "UsrCaseVisa" and it doesn't contain information on case contact or account and so on so you will need to create some additional logic that will also get data from the case that is related to the visa.

 

Best regards,

Oscar

Oscar Dylan,

 

thank you, we will try this out.

 

 

Kind regards,

Yosef

Show all comments