Need to create @Mentions Push notifications using deeplink

maharshi_v
Tera Contributor

Hi Team,

 

I have created a push notifications using deep link on my incidents of screen record. I have also created push Messages and Push notifications as well. I have given live_notification as table. I am unable to trigger the notification kindly help in this please.

 

I need to send to users.

 

The code written in the push notification message content is given below.

 

(function buildJSON( /*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) { var layoutFieldGenerator = new global.NotificationLayoutFieldGenerator(); var identifier = layoutFieldGenerator.layoutField(current.getTableName(), current.getUniqueValue(), "number"); var workNotes = layoutFieldGenerator.layoutField(current.getTableName(), current.getUniqueValue(), "work_notes"); var deepLinkGenerator = new global.MobileDeepLinkGenerator("agent"); var link = deepLinkGenerator.getFormScreenLink("b71040b1533a33007bc2ddeeff7b1221", current.getTableName(), current.getUniqueValue()); var json = { "aps": { "sound": "default" }, "Link": link, "Layout": { "Identifier": identifier, "Description": workNotes } }; return json; // Ensure the function returns the JSON })(current, message, attributes);

0 REPLIES 0