- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 09:32 AM
I want the new fields called 'Intial assignmnt group' and 'intial assignment agent' in incident table and catalog task. and those new fields should populate from "assignment group" and "assigned to" when incident is created. and those fields need not be in form. those fields are used for preparing reports.
guide me if any knowledge.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 09:40 AM
I want the new fields called 'Intial assignmnt group' and 'intial assignment agent' in incident table
Atul: What is the use case to create the new fields, it is customization. You can create
Go to Table -- Open the Incident Table - Scroll to columns / dictionary entry
create Field there
and catalog task.
Atul: Better create the new field on task table and use in other extended tables.
and those new fields should populate from "assignment group" and "assigned to" when incident is created. and those fields need not be in form. those fields are used for preparing reports.
Atul: Intial assignmnt group' --> Refer to Group table
and 'intial assignment agent --> Refer to User table
guide me if any knowledge.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 09:46 AM
What exactly is your case ? Why you need to duplicate the values on form level?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:02 AM - edited 12-21-2023 10:04 AM
If this is your requirement, create 2 new fields using FORM LAYOUT as shown in attached picture ( Open any Incident record ==> Configure ==> Form Layout ) . Later on, remove these fields from form-layout as you don't want them on form, only in backend.
Then create a business rule ( Incident record ==> Configure ==> Business Rules ) ==> New ==> Populate as shown in the attached picture :
Put following code in it under ADVANCED - ( make sure you use the backend field names of new fields, no their labels )
(function executeRule(current, previous /*null when async*/) {
if(current.assignment_group!='' && current.u_initial_assignment_group=='')
current.u_initial_assignment_group = current.assignment_group;
if(current.assigned_to!='' && current.u_initial_assignedagent=='')
current.u_initial_assignedagent = current.assigned_to;
})(current, previous);
This will help you populate the new fields with whatever values were there in AssignmentGroup & AssiginedTo for the first time.
Later just add these new 2 fields in the report, you will be able to see data under these two columns there.
Please do mark this answer as ACCEPTED / HELPFUL. Remember, you can always mark 2 replies as ACCEPTED ANSWER as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 06:03 AM
small doubt here I want this fields in both incident and catalog task. so what to do in this case?
should i create those fields separately in each table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 06:08 AM
NO, @brahmandlapally
Create on TASK table and use in Incident and catalog task.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 09:36 AM
thank you this really helped me. here i want in intial assigning agent is the name or the person who going to fill assigned to intially on ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 05:09 AM
thank you this really helped me. here i want in intial assigning agent is the name or the person who going to fill assigned to intially on ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:32 AM
yes correct.