- 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-21-2023 10:34 AM
Then I would suggest you to try above solution & let me know how it goes. It should work.
If you are confused about any part, do let me know right away.
Don't forget to mark replies as ACCEPTED SOLUTION / HELPFUL.
- 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 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:40 AM
You can probably add it to the task table, which is the parent table of incident and task. You can then reuse it in multiple task extended table. One the field is added, you can add the field to the form using form layout.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 09:49 AM
and those fields need not be in form. those fields are used for preparing reports.