HI
its not working for me so I do it with below code but I need the email body in htmpl format.
any suggestion.
wf.assignee::chg_assg(...)
{
if (status != "WAIT" && !(is_null(assignee)))
{
logf(SIGNIFICANT,"I am inside the notification procedure for chg workflow task assignee");
string evt_mtitle, evt_mbody;
// I need to send a mail to this respective Approver
evt_mtitle = format("Your Action for WF Task %s is Required in CR # %s",task.sym,chg.chg_ref_num);
evt_mbody += format("Hello,
This is an Auto Notification from ITSS IT Service Desk informing you for performing %s for Change Request # %s.
The details of the Change Request # %s are as follows:
Requestor of the Call is: %s
Call is being Co-ordinated by: %s
Description of Call is: %s
Best Regards,
ITC Service Desk.",task.sym,chg.chg_ref_num,chg.chg_ref_num,chg.affected_contact.combo_name,c
hg.group.last_name,chg.description);
evt_mbody += format("\nTo see complete details of the call, please click on the link below:.\n");
evt_mbody += format("=> %s\n\n",web_url);
evt_mbody += format("NOTE: This is an Auto Generated Mail. Please Do Not Reply to this Mail.\n");
int evt_level, trans_pt;
evt_level = 3;
trans_pt = 29;
//Dont Change any thing below
send(top_object(), "call_attr", "cnt", "notify_list",assignee.persistent_id, evt_level, evt_mtitle, evt_mbody, "", trans_pt);
if (msg_error())
{
logf(ERROR,"ERROR in sending email to chg workflow task assignee. Contact Service Desk Administrator.");
}
}
return;
}