- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2022 07:01 PM
When a catalog form is submitted, how can i create group with the name mentioned in "group name" field.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2022 07:16 PM
Hi,
Try this script and modify it with your variables or fields.
var mygr = new GlideRecord("sys_usr_group");
mygr.initialise();
mygr.name = current.variables.groupName;
mygr.manager = "sysid";. // Manager sysid or current.variables.manager field
mygr.type = "type"; // add type here or sysid
mygr.insert();
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2022 10:15 AM
We already have a workflow associated.