Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

P1 and P2 can changeable by siam team

Arjun Kumar Le1
Tera Contributor

Written before insert update business rule

 

(function executeRule(current, previous /*null when async*/ ) {

    // Add your code here
    if (!gs.getUser().isMemberOf('280935791bde8190d7b0ea02604bcbb1')) {
        current.setAbortAction(true);
        gs.addErrorMessage('You dont have the right to Create/Update P1 or P2 tickets');

        //!gs.getUser().isMemberOf('280935791bde8190d7b0ea02604bcbb1')||
    }

})(current, previous);
2 REPLIES 2

Mark Roethof
Tera Patron

Hi there,

 

You are sharing some piece of code, though... what's your question?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

swathisarang98
Giga Sage

Hi @Arjun Kumar Le1 ,

 

Could you please let us know what exactly you are trying to achieve ?

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang