Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to set to address in email scripts?

alvatindra
Giga Contributor

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?

13 REPLIES 13

Is that worked?


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


Is it possible to send email notifications to list collector users using mail script. The users should be in To field. 

Not applicable

email.addAddress("cc",current.u_requested_by.email.toString(),current.u_requested_by.name.toString());