How to Send parameter to Notification without hard coding
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2024 03:01 AM
Here My requirement is based on variable values it should trigger a event and send the recipient
Written Business rule on RITM and sending parm1 and parm2
This is here its hard code , can anyone please help me with this without hard code how we can achieve
code
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var subapp = current.variables.sub_application;
var Recipient ="";
if(subapp=="Global"){
Recipient="abcd1@xyz.com";
}
else if(subapp=="Safety"){
Recipient="abcd2@xyz.com";
}
else if(subapp=="Portal"){
Recipient="abcd3@xyz,com";
}
gs.eventQueue("xyz.search.platform.application",current,Recipient,subapp);
})(current, previous);
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2024 09:15 AM
Hello @Deva3 ,
Does my solution, solve your issue, If yes Please accept my solution as accepted and closed the thread!
Regards,
Siddhesh