- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 09:33 PM
I am trying the enhance the Story module (rm_story). The requirement is below:
1. When the State of the Story is changed to UAT (value = 7), the opened_by and all the users listed in the Watchlist should be sent an approval email notification.
2. The email notification should also include the 'Acceptance Criteria' field from the Story.
3. If any approver Rejects the State is moved back to "Work in Progress" (value = 2)
4. If anyone Approves the State is moved to Closed Complete (value = 4).
Question: Can I reuse the Approval Inserted notification as it is used by other modules and do not have a section for Acceptance Criteria. What is the best way to achieve this solution, please include screenshots.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 09:56 PM - edited 04-21-2025 10:03 PM
best way is this
1) ensure OOB Approval inserted notification doesn't trigger for rm_story
add this in notification condition
source table != rm_story
2) then create new approval notification which triggers only for your rm_story table and have email script, email body as per your customer requirement
source table == rm_story
Also remember you can handle your own logic what happens when it's approved or rejected
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 08:04 PM
Hi @Arijit Saikia ,
you don't need advanced condition for this and I don't see field name called table_name
I have tried this and it worked for (it did not Approval Request notification)
or try this approach
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 08:04 PM
Hi @Arijit Saikia ,
you don't need advanced condition for this and I don't see field name called table_name
I have tried this and it worked for (it did not Approval Request notification)
or try this approach
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 11:03 PM
I used the condition:
current.sysapproval.getRefRecord().getTableName() != 'rm_story';
It is working now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 11:04 PM
I used the condition:
current.sysapproval.getRefRecord().getTableName() != 'rm_story';
It is working now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2025 11:17 PM
Glad to know.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader