P1 and P2 can changeable by siam team
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 10:04 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 10:11 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 12:01 PM
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