Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2025 05:55 AM
for sending multiple parameters and values, you will have to use email script to grab those values.
in workflow send this in event parm1
return current.variables.first_name + ',' + current.variables.line_manager;
Then in email script get the value and split and use in email body
(function runMailScript(current, template, email, email_action, event) {
// Add your code here
var parm1 = event.parm1;
var arr = parm1.toString().split(',');
var name = arr[0];
var manager = arr[1];
template.print('Name' + name);
template.print('Manager' + manager);
})(current, template, email, email_action, event);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader