Push notification triggered by event from Workflow

Pavel Rodin
Tera Expert

Hello dear Servicenowers!

I am getting familiar myself with Mobile Agent app now and very excited about it. There is a requirement to add more push notifications. From the current process implementation it is more convenient to make it through events (from Workflow) rather than based on condition. Unfortunately, when checking out Push notification definition I've not found an option to trigger it by an event (similar to email notification). Am I missing something or it's simply not available?

Thankful for any info!

find_real_file.png

1 ACCEPTED SOLUTION

Parneet1
Tera Expert

Hi Pavel,

I have recently created custom push notifications and triggered them using event in workflow. To your point, by using advanced view, we are able to see more fields which might not be relevant to push notifications but some of them can still be used. The ones that I have used are:

1. Send when: Event is triggered

2. Send to: Event param 1 contains recipient

These 2 are only available in advanced view. I understand various other, seemingly irrelevant fields might become available as well, but I see a point in that too. There can be a use case to trigger both email as well as push notifications (I had a scenario like this as well) for the same condition and to the same recipient. Here, we can make use of 1 notification to trigger both the email and the push. It works well. If we want to trigger just the push, we can remove values from email-specific fields (subject, Message HTML, Email Template) and select 'Push Message Only' checkbox.

I hope it helps. Let me know if you have further questions about it.

View solution in original post

12 REPLIES 12

Parneet1
Tera Expert

Hi Pavel,

I have recently created custom push notifications and triggered them using event in workflow. To your point, by using advanced view, we are able to see more fields which might not be relevant to push notifications but some of them can still be used. The ones that I have used are:

1. Send when: Event is triggered

2. Send to: Event param 1 contains recipient

These 2 are only available in advanced view. I understand various other, seemingly irrelevant fields might become available as well, but I see a point in that too. There can be a use case to trigger both email as well as push notifications (I had a scenario like this as well) for the same condition and to the same recipient. Here, we can make use of 1 notification to trigger both the email and the push. It works well. If we want to trigger just the push, we can remove values from email-specific fields (subject, Message HTML, Email Template) and select 'Push Message Only' checkbox.

I hope it helps. Let me know if you have further questions about it.

Hi Parneet, thanks for recommendations. I've tried what you've suggested but it does not work from my end. 

Event is triggered from a workflow fine, I can see it in the Event Log.

The notification is configured within Advanced view and it is expected to be fired by the event. But in fact I can't see it in push notifications log and don't receive it on my mobile.

Below are the screenshots of the objects I've been working on. Appreciate if you could review it.

Thank you!

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

Hi @Pavel Rodin 

I think everything is OK, but let me a couple of thoughts:

  • Remove Push Message Only in order to be sure that notification is sent. I know that is a quite simple test, but if the HTML notification is sent, but the push doesn't, probably you are going to be a little bit closer.
  • Add a message to the push notification message, I mean, in theory is not mandatory, but just in case.
  • About the Push Message Content, I think you can use first the "Generic Record Payload", and when the notification arrives, you can change it by your test, but meanwhile the problem will be "notification doesn't arrive", the less custom object, the better.

Let me know if it helps.

Regards,

Max.

Thanks Max, let me check it.

In meanwhile I noticed one step was missed - notification had not been linked to the Push Application (see picture below). This is done now, but the push notifications still don't go through.

I have removed Push Message Only and it doesn't work either. It seems something is wrong with the notification itself but can't figure out what..

 

find_real_file.png

Ummm, then, you didn't receive the "normal" notification, isn't it? it's strange... can you check the Parneet suggestion about notification preferences?