Display previous caller name in notification

Vijay Baokar
Kilo Sage

Hello Everyone.

 

I have a scenario, when i am changing the caller to new user then system should trigger notification to new caller with name of previous caller in the mail body.

BR:

gs.eventQueue('incident.caller.changed',inc, inc.caller_id,current.user_name);
 
Notification:

Dear User,

${number} has been reassigned to you because previous caller ${parm2} is no more active in the system, Please take necessary action.

 
Result:

Dear User,

INC0009005 has been reassigned to you because previous caller is no more active in the system, Please take necessary action.

 

Expected:

Dear User,

INC0009005 has been reassigned to you because previous caller David Miller is no more active in the system, Please take necessary action.

 

 

Thanks.

IT Service Desk.

1 ACCEPTED SOLUTION

Community Alums
Not applicable

@Vijay Baokar ,

You mentioned like ${parm2}  but you you have to mention like ${event.parm2} because both the parm1 and parm2 are part on event object.

So your email body is like 

${number} has been reassigned to you because previous caller ${event.parm2} is no more active in the system, Please take necessary action.

Note: Use my business rule script because I mentioned previous in parm 2

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

View solution in original post

5 REPLIES 5

@Community Alums  its working after changes in my script:

 

gs.eventQueue('incident.caller.changed',inc, inc.caller_id,current.name);
 

Dear ${caller_id},

${number} has been reassigned to you because previous caller ${event.parm2} is no more active in the system, Please take necessary action.