Jump to content
  • Welcome to ServiceDeskUsers.com, a user community for CA Service Desk Manager.  This community is created by users for users.

  • Announcements

    • Gregg

      Looking for the wiki content?   12/20/2015

      Until I can transfer the wiki content over to the new Articles, you can find the old content here: http://www.greggsmith.net/wiki.
    • Gregg

      New site logo   01/06/2016

      A special thanks to brianshs for creating a new site logo!
  • Get LinkedIn

    Get LinkedIn to the ServiceDeskUsers Group

  • Popular Contributors

  • Posts

    • I solved the issue  here is the code  cr::z_update_usm_values(...) { if( ! is_null(external_system_ticket))
      { string arr[3];
      split(arr,(string)external_system_ticket,"-");
         send_wait(0, this, "call_attr", "zusmrequestid", "set_val", (int)arr[2], "SURE_SET");
      send_wait(0, this, "call_attr", "zusmrequestitemid", "set_val", (int)arr[1], "SURE_SET");
      send_wait(0, this, "call_attr", "ref_num", "set_val", arr[2], "SURE_SET"); } return; }
    • split () and extract () not allowed on object attributes: dest
      02/21 14:47:24.16 Demo           spelsrvr             2640 ERROR        script.y              3882 C:/PROGRA~2/CA/SERVIC~1/site/mods/majic/z_update_usm_values.spl at (8) Variable type mismatch
      02/21 14:47:24.16 Demo           spelsrvr             2640 ERROR        script.y              3882 C:/PROGRA~2/CA/SERVIC~1/site/mods/majic/z_update_usm_values.spl at (11) Object attribute "dest" can't be an array
      02/21 14:47:24.16 Demo           spelsrvr             2640 ERROR        intpnoex.c             640 Error 3 processing Spell file C:/PROGRA~2/CA/SERVIC~1/site/mods/majic/z_update_usm_values.spl
    • ///////////////// MOD FILE ///////////// OBJECT cr{
        TRIGGERS {
        POST_VALIDATE z_update_usm_values() 100 FILTER( ( EVENT("INSERT")));   }; };   ////////////// SPL FILE ///////////// O cr::z_update_usm_values(...) { if( ! is_null(external_system_ticket))
      {  string dest[];
      split(dest,external_system_ticket,"-"); 
      send_wait(0, this, "call_attr", "ref_num", "set_val", dest[2], "SURE_SET");} return; }
    • hi, ref_num can be update on insert (new ticket creation) only. If you share your code and error message I can review it. Regards, cdtj
    • Dears, I am trying to update cr ref_num in sdm version 17 to be as catalog request id using external_system_ticket ( CASC-0000-0000) I wrote a post_validate trigger on cr when insert, When trying to use strinh split () function then my spell server down.   Is there any way to update the ref_num ?  
×