- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 07:49 AM
Good Day everyone.
I am trying to figure out how to email a user that is filled into a reference field on a catalog item form.
Basically, i have an expense form and on the form i have a reference field called Approver.
The request once submitted should email the Approver to approve the expense request.
I am not able to figure out how to do this in the Notification or email script.
or how do you program event parm 1 to pass the information into it
any help is appricated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:33 AM
i was able to figure it out
(function() {
// return the value to use for Parameter 1
return current.variables.approbateur_approver;
}());
thank you all for the input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 07:55 AM
you can use eventQueue based approach via business rule
So once REQ is created are you creating an expense record? you can use workflow run script and pass that field value in event parm1
Can you share some details around the form, screenshots etc
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:01 AM
sure here is what the expense form looks like:
the Reference field Approver
is what i need to send the email to once the item is submitted.
i need to pass that approver email to the notification
but i am not sure on how to do it for the catalog item REQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:30 AM
Please refer below video for steps to create a notification in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:33 AM
i was able to figure it out
(function() {
// return the value to use for Parameter 1
return current.variables.approbateur_approver;
}());
thank you all for the input