CA Service Management

  • 1.  spel required for location base grouping

    Posted Dec 05, 2018 07:41 AM

    Hi Team

     

    I need spel for location base grouping so that when ever location is selected by the user in ticket page , same group should also select. 

    Instance, Location : CC WCC LHR  GROUP: CC WCC LHR

                    Location : CC RWP           GROUP: CC RWP

     

     

    so it should work same location n group name.

     

    Please help me how to achieve this.

     

     

    Autoassignment will not work for me as we have hundred of endusers and we cannot assign their location in contact.



  • 2.  Re: spel required for location base grouping

    Posted Dec 10, 2018 04:33 AM

    hi,

     

    maybe i missunderstand, but...

    guess u have a zField for location in ticket?

    if it is like this, spel would be:

     

    this.group = (uuid)expand(format("&{'%s' = grp.last_name->id}", this.zField.name));



  • 3.  Re: spel required for location base grouping

    Posted Dec 10, 2018 05:25 AM

    Hi PAcy

     

    For location i have zRegion field.

     

    also pls tell me where to put this spel code ? which htmpl file?

     



  • 4.  Re: spel required for location base grouping

    Posted Dec 10, 2018 05:59 AM

    then it is:

    this.group = (uuid)expand(format("&{'%s' = grp.last_name->id}", this.zRegion.name));

     

    for examples how to implement this, search the community for 'trigger', you will find a lot of stuff there. basically it's a server-sided thing, so no htmpl file is involved. triggers are saved in NX_ROOT/site/mods/majic with a file extensions of *.maj and/or *.mod and *.spl. maybe you can already find a couple of implemented ones on your machine?

     

    regards

    pacy