Difference between Catalog Item and Record Producer: Catalog Item will end up in opening a request and request item and attaches a workflow and catalog task, approvals. Record producer simply inserts a record in the selected table.
Global field in UI Policy: If Global is selected the script applies to all views for the table. If the Global field is not selected you must specify the view.
Ui policy is having control on order but when we take client script it is fully loaded and that to having lowest order will execute first so best ractise is go to ui poicy
(function executeRule(current, previous /*null when async*/) { var user = new GlideRecord('sys_user'); if (!user.get(current.getValue('user_id'))) { return; } var group = new GlideRecord('sys_user_group'); if (!group.get('your_group_sys_id_here')) { return; } var membership = new GlideRecord('sys_user_grmember'); membership.initialize(); membership.user = user.sys_id; membership.group = group.sys_id; membership.insert(); })(current, previous);
Difference between Catalog Item and Record Producer:
Catalog Item will end up in opening a request and request item and attaches a workflow and catalog task, approvals.
Record producer simply inserts a record in the selected table.
Global field in UI Policy: If Global is selected the script applies to all views for the table. If the Global field is not selected you must specify the view.
Hi sir,
If possible, please make modules wise Question and Answers in real time. Thanks
Thank you for the video sir, It is very helpful.
Ui policy is having control on order but when we take client script it is fully loaded and that to having lowest order will execute first so best ractise is go to ui poicy
Who can provide experience for service now administrator job role if any one knows
Hi I can help you
can you please provide the solution for How can we add users to group automatically ?
Write a BR
May be by using async BR
(function executeRule(current, previous /*null when async*/) {
var user = new GlideRecord('sys_user');
if (!user.get(current.getValue('user_id'))) {
return;
}
var group = new GlideRecord('sys_user_group');
if (!group.get('your_group_sys_id_here')) {
return;
}
var membership = new GlideRecord('sys_user_grmember');
membership.initialize();
membership.user = user.sys_id;
membership.group = group.sys_id;
membership.insert();
})(current, previous);
@@SKfacts_ITcareerswhat if I remove manager from the group approval list ?
So users can directly join in the group
✌
Customer update sets capture on sys_update_xml
👌🏿👌🏿👌🏿👌🏿👌🏿👌🏿👌🏿👌🏿
How do I contact you for a mock interview?
9066921316 WhatsApp