AnsweredAssumed Answered

Data partition is ignored by spel code

Question asked by Gutis Champion on Aug 4, 2015
Latest reply on Feb 22, 2018 by Daniel Becker Bighelini

Hello, I would like to create some additional object when activity log is created. For this I use the following code


send_wait( 0, top_object(), "call_attr", "zmyobject", "get_new_dob", NULL, NULL, group_leader);

     if (msg_error()) {

      logf(ERROR, "get_new_dob failed %s", msg[0]);


     newzmyobject= msg[0];

     newzmyobject.description = description;   

     newzmyobject.request = call_req_id; = analyst;     

     send_wait(0, group_leader, "checkin");

     if (msg_error()) {  

      logf(ERROR, "checkin failed %s",msg[0]);



Everything works fine, but I would like to disable this functionality for some particular roles by using data partition constrains. I was expecting that I will get an error, if this script will be initiated by user with data partition constraint,  that does not allow creation of the object. But it seems that my spel is ignoring constrains, while in web interface everything working as expected.

Maybe someone knows some other, data partition aware, method for custom object creation.