How to trigger an event from business rule?

revathy
Kilo Expert

Hi all,

I am triggering the event queue from my business rule but i couldn't see any data in parm1 and parm 2 in my "Events" table instead i can see the mail id   in the table column in the "event table".

script:

-------

gs.eventQueue('customerProfile.affected',array[j],user_email);

I am able to get the value of array[j] as well as user_email when i used gs.log for check.

Thanks.

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi Revathy.



Following is syntax for gs.eventQueue method



e.g


gs.eventQueue('incident.commented', current, gs.getUserID(), gs.getUserName());



Please make sure that you pass GlideRecord object   ( like current) in second paramter of gs.eventqueue method.



Regards,


Sachin


View solution in original post

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi Revathy.



Following is syntax for gs.eventQueue method



e.g


gs.eventQueue('incident.commented', current, gs.getUserID(), gs.getUserName());



Please make sure that you pass GlideRecord object   ( like current) in second paramter of gs.eventqueue method.



Regards,


Sachin


DilipKumar DJ
Kilo Guru

Hi Revathy,



Use this:



gs.eventQueue('customerProfile.affected',current,array[j],user_email);