after the requested item we need pre populate the user group mail in the watchlist and worknotelist

siva krishna ch
Tera Contributor

How to configure the after submit  the requested item we need pre populate the user group mail in the Watch List and Work Notes List

1 REPLY 1

johnfeist
Mega Sage
Mega Sage

Hi Siva,

 

Assuming that you know the group mail, its just a couple of lines of code.  You might want to consider doing it as a before insert since the data will be part of the item from the start.  The script is something like this:

 

current.work_note = <your value>;
current.watch_list = current.watch_list + <your value>;

If you do this in a before insert script make sure that you don't have a current.insert() or current.update() statement because that can put you in an endless loop.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster