Hi Guys,
After a couple of days I created my own workaround to correct this issue:
- Configure the survey as docummentation suggest How to Configure Surveys - CA Service Management - 17.1 - CA Technologies Documentation and keep the name of Survey Message Title
- Create a new string field with 2000 characters of size on Call_Req Table, example: lnk_srvy;
- Create a action macro that blocks the object as follow:
string wc, arrSplit[2];
int debug, num;
debug=1;
wc = format("cntxt_obj ='%s' AND msg_hdr='<Survey Message Title>'",persistent_id);
send_wait(0, top_object(), "call_attr", "api", "get_val_for_wc", "lr", wc,"msg_text");
if (msg_error()) {
logf(ERROR, "Macro Digest -- Ticket: %s - Error: %s", ref_num, msg[0]);
}
else {
lnk_srvy = msg[0];
if( debug==1 ) {
logf(SIGNIFICANT, "Macro Digest -- Ticket: %s - Survey Link %s", ref_num, lnk_srvy);
};
//remove string lines
lnk_srvy=gsub(lnk_srvy, "\0012", "");
//Catch DIGEST value
num=split(arrSplit,lnk_srvy,"DIGEST=");
lnk_srvy=arrSplit[1];
if( debug==1 ) {
logf(SIGNIFICANT, "Macro Digest -- Ticket: %s - Digest saved: %s", ref_num, lnk_srvy);
};
}
- Create a new Event and associate to Action Macro above, remember to put a delay of 10 seconds on event;
- On the same Activity Notification that you configured the survey, attach the new Event;
- After all that you could be return to use the link on HTML Message templates like that:
http://dns_name/CAisd/pdmweb.exe?OP=DO_SURVEY+SVY_ID=400002+CNT_ID=@{call_req_id.customer}+CNTXT_PERSID=@{call_req_id.persistent_id}+MSG_DIGEST=@{call_req_id.lnk_srvy}
Regards,
Jorge Arcanjo de Souza