AnsweredAssumed Answered

Attach SLA Spell

Question asked by ianprogrammer on Aug 24, 2017
Latest reply on Aug 25, 2017 by Gutis

Hello, I am trying to bind a service type to a ticket using spell,
However I am getting the following error message


08/23 17: 43: 40.34 LLK85SH20073 domsrvr 2480 ERROR where.y 908 Parse error at: "461369" (syntax error)
08/23 17: 43: 41.47 LLK85SH20073 spelsrvr 5456 ERROR sla.spl 3734 Error checking in deleted atev: Attempt to checkin with nothing checked out.


Below the code I'm using

uuid who; 
object newobject;
string zattached_sla;
send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
who=msg[0];

send_wait(0, top_object(), "call_attr", "api", "get_val_for_wc", "cr", "461369","sla_violation");

send_wait(0, top_object(), "call_attr", "api", "insert_object", who, "attached_sla", NULL, 0,
"map_sdsc", "sdsc:400815", "ticket_id", "461369", "ticket_type", "cr", "_mapped_cr", "cr:461369","sla_viol_status",msg[0]);

 

 

I'm using fixed values for testing before making the business rule.

 

Thanks.

Outcomes