How to set to address in email scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 05:08 AM
Hi,
I need to set the To address using email notification scripts. I am able to set the cc using email.addAdress('cc','email','name') but not to.
How can I achieve this?
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 07:49 AM
Is that worked?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2017 06:52 AM
Hi Alvatindra,
Here are the Options you need to follow:
Option -1) If you create the event from Business Rule
Use below script format:
gs.eventQueue("<event name>", current, <sys_id of users seperated by Comma>, gs.getUserName());
Option -2) If you create the event in WF then you need to Put sys_id of users seperated by Comma in Event param 1 or event param 2
Thanks,
Arindam

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2023 11:55 AM - edited ‎05-23-2023 12:03 PM
email.addAddress("cc",current.u_requested_by.email.toString(),current.u_requested_by.name.toString());