- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 02:21 AM
Hi All, I have below requirement for creating different email notifications to a catalog item "ABC"
Req:1
I want sent a email notification like below template to the requester
Email1: Email upon submittal. To: Requester, Trigger: Submittal of completed (all mandatory fields populated) property removal form
Req 2: I want sent mail to the infrastructure owner(Variable in catalog item)
Email2: Please approve or reject. To: Infrastructure Owner, Trigger: Submittal of completed (all mandatory fields populated) property removal form
Req:3
i want sent mail to the approvers in Ritm form
Email: Please approve or reject. To: Next approver in the workflow , Trigger: Approval by the previous approver
Req:4
I want sent mail to All approvers
Email4: Approval. To: Requester. Trigger: All approver have approved the request.
Req:5
I want sent a mail to requester if approval is rejected
Email5: Rejection To: Requester. Trigger: One approver has rejected the request
How to acheive above the requirements can any one please post some script for this
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 02:27 AM
Go to Notifications and start configuring for each of those points.
Let me know if you have any questions.
Mark the comment as helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 07:20 AM
Oh ,it was my mistake,
Now the out put is working for one print statement see this
Property removal identifier (RITM):RITM0247058
Device Recipient Name: 85dfb2cedbf3df0054bd2a25ca961947
its not getting name ,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 07:21 AM
try liek this, considering its a reference field
gr.variables.Recepient_name_reference.getDisplayValue()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 07:22 AM
For reference fields, use getDisplayValue
and for normal fields under variables, use liek this
gr.variables.variable_name
for normal fields, try
gr.field_name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 07:27 AM
Oh thank you its working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 07:28 AM
Great.
Kindly mark the comment as a correct answer and other comment(s) as helpful.