How to setup Conditions on the sysapproval_approver email notification for certain Request Items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 10:43 AM
Hello everyone,
i need some advise.
i have created a few catalog items using the sc_req_items that has approvals added to them.
I was able to make a email script to read the request items variables and have them displayed on the approval email
what can i do to have this to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 11:46 AM - edited 10-20-2023 11:46 AM
Hello @Peter Williams ,
How the notification event is called/fired?
We can add the some script like this over there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 11:58 AM
it gets called when a approval request is inserted into the sysapproval_approver table via a BR rule called approval.inserted
this is an OOB setup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 11:07 AM - edited 10-20-2023 11:08 AM
I wanted to check one thing, from where you are firing event?
If its a business rule you can add condition there only before firing the event
OR
you can mention the condition in advance section of Notification
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 11:12 AM
yes i would like to know how to do it in the advance section of the notification
But How do i put in a advance condition for the catalog Item name if the notification is coming from the sysapproval_approver table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2023 11:20 AM - edited 10-20-2023 11:22 AM
You can do something like this
As sysapproval field contains the sys_id of record for which approval has requested
current.sysapproval.cat_item.name == "Name_of_item"
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.