How to trigger a notification to email from workflow?

Divi
Mega Guru

I just wanted to trigger a notification through workflow whenever a new incident is created and assigned to a particular person.

Thanks in advance...

1 ACCEPTED SOLUTION

ayanc27
Kilo Expert

Hi, Please follow below steps:

 

1) Create a new workflow on Incident Table

2) Under Workflow properties, condition Tab:

If condition matches: Run the workflow always

Condition: Assigned to is not empty

3) Add Notification activity in workflow.

 

BTW, whom you want to send this notification, as Assigned to person will get email OOB when you assigned an Incident ticket to any person.

View solution in original post

9 REPLIES 9

Hi Piyush,

 

 

Thank you for the  response, but wanted to know what is the script that is required to be added in runscript part  for sending the notifications to that assigned person on the incident form..

 

Regards,

Divya.

Divi
Mega Guru

Hi All,

 

Thank you  all  for the responses.I'm  new to servicenow and trying to learn things in workflow part, just wanted to create a workflow which will notify the "assigned to " person on an incident form..

And i had already tried with notifications and it worked but just wanted to do it through workflow.So what is the script that needs to be in runscript part????

 

Hi Divya,

Please find below image for the same.

 

find_real_file.png
Please mark this solution as Correct/Helpful if you find it appropriate.

Thanks,
Piyush

Hi Divya,

If the incident is already being assigned to someone as part of the workflow as well, the easiest is to just add a "Notification" activity after the task creation.

For example:
If you don't know the field names well yet, you can use the variable selector on the right hand side.

But to be honest: this is not a good way to handle this.
Much easier to work with notifications, they have much more options (nice HTML editor) + better to edit a notification then a workflow imo. Also setting up conditions is so much easier there than using IF/SWITCH and the liked in your workflow.
When you edit a workflow you always have a risk of breaking something other than the notification part, if you edit a notification the only thing that can go wrong is the notification.

find_real_file.png

 

Daniel Plunkett
Kilo Expert

It would be easier to do this using events and have a notification send when an event is processed. There should be an out of the box business rule that handles this when an incident is created.