Provider notification does not send to group

ehgebla
Giga Guru

Hi everyone, 
I have no idea what the issue here might be, but we started setting up provider notifications (to get rid of mails for our agents) and all of them are working fine when they'll be send to one user (e.g. mentioned by, additional comment/work note added to record etc).

What we now want to have is the simple notification when a new record arrives in one of their groups but is unattended. I used the exact same parameter as for our email notification, and added "Recipients listed in field" > Assignment Group.

Cap1.PNG
Content Class is set to Next Experience.

However, no notification is to be shown by the bell. The trigger is somehow successfully working it seems, as far as I can see in the log.


We're getting the following in the logs for the execution:

 

For Synchronous Providers: Loaded 1 recipients and 0 destinations and delivered to 0 destinations in 4ms

For Synchronous Providers: 'INC: Assigned to group' do not have any associated Common Content or Provider Content or Default Content for the Provider 'Workspace', this provider will not be initialized.

For Asynchronous Providers: Loaded 1 recipients and 0 destinations and delivered to 0 destinations in 4ms

 

Can someone help me out?



1 ACCEPTED SOLUTION

 

(function executeRule(current, previous /*null when async*/ ) {

    gs.eventQueue('testEvent', current, getGroupMembers(current.assignment_group), current.number);

})(current, previous);

function getGroupMembers(groupID) {
    var groupArr = [];
    var groupMemberGR = new GlideRecord('sys_user_grmember');
    groupMemberGR.addQuery('group', groupID);
    groupMemberGR.query();
    while (groupMemberGR.next()) {
        groupArr.push(groupMemberGR.user.sys_id.toString());
    }
	var stringArray =  groupArr.join();
	
	return stringArray;
}

 

Have a go with the above, this is the business rule script (just replace the eventname "testEvent" with your own). The condition  I set was just when assignment group changes.

 

The event log looks like this when triggered:

Rhodri_0-1693485925406.png (note all the user sys_ids, comma separated in parm1).

 

Rhodri_1-1693486000470.png

 

Rhodri_2-1693486040061.png

Looking at the logs above it looks to be working

Rhodri_3-1693486650370.png

 

 

Let me know if any luck/still issues. This is for the notification bell notifications right? (workspace experience > administration > notification triggers)

 

View solution in original post

12 REPLIES 12

I have followed your steps above and was able to get a notification to popup when a Live Agent chat is in progress and the Agent clicks on Help.  The only issue I have is that the message says 'Short Description field is empty'.  How do I fix this?Popup notification.jpg

I think it literally means that your short description is empty, I think the system substitutes it with that instead of leaving it blank:

Rhodri_0-1694700015245.png

Rhodri_1-1694700031111.png

 

My example is running on the incident table. Did you add then field message/short description in manually or did you use the field picker to the right of the message field?

i.e I'm wondering if the table you are running on doesn't have a short description field. Or the example that you triggered the test on just happened to have an empty short description.

 

Good luck!

 

You are right that the short description was blank.

 

The picture you just provided for the Notification Next Experience Content....is that an oob table?  I don't have that installed.  I just installed the Notify plugin, but still don't see this table. 

Yeah this is just in a fresh PDI instance through SN Developer, I haven't activated any other plugins in it.

 

workspace experience > administration > notification triggers

 

Rhodri_0-1694704195568.png

There is a related list at the bottom of the notification:

Rhodri_1-1694704220086.png

When you click "new provider notification" I get the below and pick "next experience".

Rhodri_2-1694704288866.png

 

Edit:

Table is [sys_notification_next_experience_content] 🙂

 

 

GnaneshP
Tera Contributor

I followed the same steps mentioned above, I can see the logs but didn't receive the notification. @Rhodri can you please help? I'm trying this in PDI.
1. Event - incidentGroupAssigned

GnaneshP_0-1719240087586.png


2. Notification record

GnaneshP_1-1719240147015.png

 

GnaneshP_3-1719240187420.png


3. Notification content

GnaneshP_4-1719240252327.png

 

4. Business rule script

GnaneshP_5-1719240310814.png


5. No notification received

GnaneshP_6-1719240412884.png


6. Event log

GnaneshP_7-1719240530008.png