Notification should send after first task closes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:58 PM
Hi There,
I have one requirement,
When RITM will create at that time the Approvals will trigger and once the Approver will approve the RITM, first task will create and once this task will close then the other two tasks will create.
and here what i need to do is, once the first task is closed at that time requestor should receive an email (that your first task has been closed) , and this notification should send only after first task closed, not all remaining tasks close.
for this i have created one Notification and attached it after first task but in that Notification Activity i'm unable to attach my email Template (That email template contains some variables so i need to attach that template with that Notification),
so how can i add my Email Template in Notiification in Workflow,
please find the attached snapshot.
From the Above snapshot, yellow Highlighted is first task, once this task gets closes the notification is Trigger(Skyblue highlighted box), now the email is getting triggering but i want to add my email template , so how to add that Template in Workflow,
please someone help me on this.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 12:10 AM
Hi,
Instead of using notification activity directly in the workflow creat an event and create notification in the system notification table and give when to run condition as when event is triggered and give event name there
In the workflow after task is completed add event activity and give event name which you have for created notification
Reach me if any help needed
Please mark as correct solution and helpful if it is helpful
Thanks,
Ramya Addala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 12:23 AM
Hi @Community Alums ,
Please refer below URLs.
https://www.servicenow.com/community/developer-forum/workflow-and-email-notification/m-p/1659300
If this solved your issue, please mark this correct and helpful, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 12:25 AM
Hello @Community Alums
It is not possible to add an email template directly to the workflow.
However, if you want to add email templates, create a notification in the system instead in the workflow and trigger it with a event.So that you can add email template in the notification.
Simply replace with the notification with create event acttivity and configure the notification in the system.
Related thread: https://www.servicenow.com/community/now-platform-forum/workflow-notification-using-email-template/m-p/1119569
Please mark it Correct and Hit Like if you find this helpful!
Regards,
Karthiga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 12:33 AM
Hi Priya,
You can use "Create Event" activity and then configure the notification in "sysevent_email_action" table with the when to send condition selected as event is fired and selecting the event name you have provided in the workflow.
Then easily you can configure the email template.
Please like if this is helpful.
Best Regards,
Sindhu