How to pass "previous " object in eventQueue() through Business rule and retrieve in Script Action..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016 09:56 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016 10:00 PM
Can you show your code where you are trying to pass the previous object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016 10:06 PM
BR Code on problem table
gs.eventQueue('customer.closeProblemExternal',current,'previous', '');
Script Action Code:
var temp=event.parm1;
gs.log(temp.state);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016 10:09 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2016 10:12 PM
Hi Syed,,
Thanks for reply.. But I need complete object. I need all fields of previous.
Please can u suggest ..