How to pass "previous " object in eventQueue() through Business rule and retrieve in Script Action..

sumitjumale
Kilo Contributor

Hi All,

I need to pass "previous " object in eventQueue() through Business rule and retrieve in Script Action. I am able to pass current object.. but I coudnt retrieve   previous object wirh event.parm1.

Please suggest.

Regards,

Sumit Jumale

20 REPLIES 20

anupama8
Tera Expert

Can you show your code where you are trying to pass the previous object.


BR Code on problem table


gs.eventQueue('customer.closeProblemExternal',current,'previous', '');



Script Action Code:



var temp=event.parm1;


gs.log(temp.state);



HI Sumit,



Try this it should work.


In BR:


  gs.eventQueue("customer.closeProblemExternal",current,previous.assigned_to.name,null);



In Notification :


Previous Assignee:   ${event.parm1}




Thanks


Hi Syed,,


Thanks for reply.. But I need complete object. I need all fields of previous.


Please can u suggest ..