AnsweredAssumed Answered

Site Defined Condition End User's Special Handling for Notification

Question asked by diegojacob on Oct 18, 2018
Latest reply on Oct 26, 2018 by diegojacob

Hey guys!


I'm trying to create a condition for notifying groups based on special handling.

 

Searching the community I was able to find this topic (Is it possible to set up a Notification based on the Affected End User's special handling status? ) that was very relevant.

 

I created a condition macro and made the modifications in detail_macro.htmpl to allow editing the macro code to insert the code referenced in the topic:

 

object list_handlings;
int i,found;


send_wait(0,top_object(),"call_attr","contact_handling","sync_fetch","STATIC", "contact = ?",-1,1, this.customer);
list_handlings = msg[0];

for(i=0;i<list_handlings.length;i++)
{
if(list_handlings[i].special_handling.sym == "VIP")
{ found=1;}
}

if(found==1)
return true;
else
return false;

 

However, when I try to save this new macro I get an error message "Error validating macro:":

 

 

Could you tell me if I'm doing something wrong in creating this macro?

 

Many thanks!

Outcomes