How to set up an email notification for Requested for in the approval table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 08:50 AM
Hello,
Could some one please advise on how to set up an email notification for Requested for in the approval table?
Thank you so much!
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 10:14 AM
Aman,
STEP 1 - Created an event on RITM table:
STEP 2 - Created Notification on RITM Table.
Questions: What will be in "When to send" and "What it will contain" Tabs
STEP 3 - Need help on write up a BR on the "sysapproval_approver" table. What should be in there?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 09:16 AM
I asume you are talking about approvals on RITM and you are looking for the requested by on the RITM.
Since the change to a document id field many versions ago you cannot select any fields of the item you are approving. Atleast not in the selection.
There are 2 common ways to still add users to the mail.
- Ensure the persons you want to send the mail to are added to parm1 of the event. Herefor you need to find the BR creating the event and have the requested for added.
- Via a mailscript. in the mailscript have a line like:
email.addAddress("to", <email adress>, <display name>);
You can use call this mailscript at the end or at the start of the notification text.
PS. this is also the way if you want to add cc or bcc adresses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2022 12:27 PM
I used the condition on the ritm table to look for Approval field changes from Requested to Approved, then trigger the notification. It works fine.
Thank you everyone suggestions.