- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2025 04:48 AM
Hello experts,
I am working on SN push notification for SIR
I have duplicated the Response Task Assigned to me notification and created Response task assigned to my group
here the conditions for firing :
assignment group changes
assignment group is not empty
Now I have created a new push message where details are
table: sn_si_task
created net new push message content, inspired by OOB push message content for assigned to me
(function buildJSON(/*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {
var layoutFieldGenerator = new global.NotificationLayoutFieldGenerator();
var identifier = layoutFieldGenerator.layoutField(current.sys_class_name, current.sys_id, "number");
var shortDescription = layoutFieldGenerator.layoutField(current.sys_class_name, current.sys_id, "short_description");
var appletId = "d49c5734b78133007253c4a8de11a968";
var json = {
"aps" : {
"sound" : "default"
},
"Redirection" : {
"Title" : "Response Task Assigned to My Group",
"To" : "Embedded",
"Destination": {
"DocumentId": appletId,
"ItemId": current.sys_id
},
"Context" : {
"ContextType": "RECORD",
"TableName": "sn_si_task",
"RecordId": current.sys_id
}
},
"Layout" : {
"Identifier" : identifier,
"Description" : shortDescription,
}
};
// build JSON sent by push here
return json;
})(current, message, attributes);
Now in notification who will recieve, i have added assignment group
I dont know where am i mistaking, but no new log gets created when the conditions are met and notification is triggerd, potentially showing that its not being sent
I added log by clicking on advance erelated link, and the notification is fired
i dont know where to look at and what to modify
any help will be appriciated
Gaurav Vaze
SN developer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 05:28 AM
I have got solution for this one
It seems we need to add one more configuration as
Add a push notification to the Push Default Registrations table
Here is the article stating the details of the same:
https://www.servicenow.com/docs/bundle/yokohama-platform-administration/page/administer/notification...
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2025 07:29 AM - edited 07-14-2025 07:29 AM
Hi @Gaurav Vaze,
Here are some changes/ checks you might want to do:
-
Push notifications are user-specific. Change recipient logic to loop over users in the assignment group.
-
Enable logging inside:
-
Push message Content script
// Your custom JSON looks fine structurally, but check: // 1. appletId is correct and matches an actual Mobile Applet that the user has access to. // 2. current.sys_class_name is valid. //3. layoutFieldGenerator doesn't return null (log it temporarily to check). gs.log("Push: sys_id=" + current.sys_id + ", short_description=" + current.short_description);
-
-
Make sure, you are checking the Push notifications at the correct navigation: System Logs > Push notifications.
-
Check if push notification property is enabled: glide.push.enabled
- Ensure the applet ID is correct and accessible to the user.
Regards,
Anish Reghu
Please accept this as correct answer, it it works.
(or) Mark if Helpful, if it does.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 05:28 AM
I have got solution for this one
It seems we need to add one more configuration as