Trigger Notification when a user is assigned to a task

AnastasiaA
Giga Contributor

Hello, 

I have a project inside the project workspace and i want to trigger an email notification each time a user gets assigned to a task in the planning tab. I tried both workflow logic and business rule , event , notification but in both situations the event doesn't even get triggered, there's nothing inside the system logs. I tried testing the workflow and I received the notification correctly. I believe the trigger is fine. Could there be any other reason that blocks the trigger ?

4 REPLIES 4

Bhavya11
Kilo Patron

hi @AnastasiaA ,

 

If you are sending emails to yourself, make sure 'Send to event creator' flag is checked.

 

Email Notifications - Who will receive

Send to event creatorSelect this check box to send the notification to the person who performed the action that started the notification process if the person is also specified in the Users/groups in fields, Users, or Groups field. If the event creator is not specified in one of these fields, the event creator does not receive a notification regardless of the setting in this field.

For troubleshooting information, see Troubleshooting email notifications - Send to the Event Creator on the ServiceNow Community.

 

 

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,

BK

Hi ,
Thanks for your quick answer. I didn't mean sending emails to myself, I wanted to notify the user that the task gets assigned to . I think the problem is that project workspace autosaves the tasks if you create them in the planning tab and so the trigger "record updated or created" doesn't even get triggered actually. I found a solution by creating a scheduled flow which checks the assigned to field at regular intervals and sends a notification if any change is monitored, but i don't know if this is the best solution.

Ankur Bawiskar
Tera Patron
Tera Patron

@AnastasiaA 

please share what did you configure

Event, notification is on which table, who is the recipient etc?

What debugging did you perform?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

AnastasiaA_0-1748332464534.pngAnastasiaA_1-1748332508168.pngAnastasiaA_2-1748332538908.pngAnastasiaA_3-1748332563630.pngAnastasiaA_4-1748332587052.pngAnastasiaA_5-1748332604952.png

this is the last flow i created . The logic behind it is that every 2 minutes go and check the pm_project_task table in the project workspace. I created a custom "Email sent" field with default value set to false in order to state the no email has been sent and "pass" the first if statement and send an email to the user who has been assigned to the task(the recipient) and then update the record with setting  "email sent" field to true . I also created another custom field called "Last Assigned To" in order to send notification when reassignment occurs, which when the first notification is sent gets populated with the value of the "Assigned To" field, so it actually keeps track of the last person the task was assigned to and if it the flow catches any difference in these two fields it also triggers the notification. However, It seems that I still face a problem.
It doesn't seem to trigger and I think it can't "see" the default value (false) .