{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":34618,"path":"mobile/actionable-push-notification-1a.md","title":"Actionable push notification script example","bundle":null,"doc_type":null,"release":"australia","body":"\n# Actionable push notification script example\n\nYou can use this JSON script example to configure an actionable push notification for ServiceNow® mobile apps.\n\n## Example script\n\nThe following example script creates a push notification that your users can see on their mobile devices.\n\n**Important:** The globally unique identifier in the following script \\(`\"70bbc19c87f901101ae365b83cbb3559\"`\\) is the sys\\_id of the push notification record found on the push notification table \\[sys\\_sg\\_push\\_notification\\]. Make sure that the identifier in the script your system generates matches the sys\\_id of your push notification.\n\n```\n(function buildJSON(/*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {\n\n     var layoutFields = {\"Identifier\" : \"number\", \"Description\" : \"short_description\", \"Status\" : \"state\" };\n       return new global.ActionablePushPayloadBuilder(current, \"70bbc19c87f901101ae365b83cbb3559\", layoutFields).buildJSON(); \n\n})(current, message, attributes);\n```\n\n**Parent Topic:**[Configure actionable push notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/mobile/actionable-push-notification.md)\n\n"}}