assigmentGroup_defaultvalue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 07:08 AM
Hi I need help! I made a script that as soon as I write down the name it automatically returns its sys_id to me, I made the script in script included and then I connected it with the default value and it doesn't work, I attached pictures of it I would appreciate help and corrections thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 08:37 AM
this is script included
This is the group name found in the group table
and this default value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 08:42 AM - edited 11-19-2023 08:44 AM
You should not get the 'invalid default value' error in Dictionary. Try reload the form, do you still see that?
Also what are those steps you did to test it?
I recommend go to Incident -> Create New
And try to test it with another group which is in alphabet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 08:47 AM
My intention was this:
I have a group in the group table called "support center" and it has a sys_id and I want that as soon as I open incdent the name of the group "support center" will automatically appear in the Assignment group field. Now I don't want to do it manually and simply copy the sys_id to the default value. The requirement from my side is I will make a script that according to the name in the folder table will give me the sys_id and then I will connect this function to the default value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 09:00 AM
@yardenKrispel , I get your requirement and my solution solves it, also tested it myself.
However, you just said whenever you open the incident, but the approach you initially did at the Dictionary tab will only work when you create new task record (example: incident). Test again in new incident form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 09:16 AM
It works for me thanks a lot for the help! Now another question if I want the skippert to already have the group itself and it will return the sys_id without me writing in the default value the name of the group but only the name of the function and this is how I change it in the code?