How to send an email to triggering user using Action 'Send Notification'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 05:10 PM
Hey Community,
I feel like I am missing something pretty obvious here.
Given a Flow that triggers a Notification via the 'Send Notification' trigger, which lets you select any Notification record for a given table that has a 'Send when' of Triggered, how do you ensure that email only goes to the user who triggered the Flow (An Inbound Email in my case)?
If there is no sender set in 'who will recieve', no email goes out, even with 'Send to event creator' being set. I've tried adding a mail script to add the current user to to "to", but still no email sent. The email only sends if I add a 'User' or 'Users/Groups' in fields. When testing the Flow, the current user is guest. So I need to test that manually.
What am I missing? Is there no way to achieve this requirement?
P.S. I do not wish to use 'Send Email' as I can't use layouts/templates that way.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Labels:
-
Flow Designer
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 05:21 PM
Not that I have a solution (at least not yet), but this sounds similar to a case we have open with HI at the moment. I can share the results once we get a solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 05:10 AM
What was the solution?
My hack for this was to fire the notification using the context of the sys_email record, then use the 'user' and/or 'user_id' field.
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2023 07:20 AM
Hi Chuckn, Did you get any solution to this. I too have a requirement to send the email to the sender of the inbound email. Please let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2022 07:11 PM
I'm not too familiar with flow designer so can't help with the proper way to do it but a hack could be to fire a custom event then have the notification work it out from there.
eg if I understand your situation right
- email comes in
- flow does some flowing
- queues custom event linked to inbound email gliderecord
- notification fires, record for the notification is the inbound email
- pull their email from current (not sure if you need to handle the case of users that don't exist on your platform emailing you)
** EDIT
Looks like you can associate a record with the notification without the custom event faff:
Creating Notification Action in Flow Designer - Now Platform - Question - ServiceNow Community
So you should just need to amend your mail script so that instead of current user it pulls the email from the "current" record on your notification