How to DOT walk on Configure Form Layout (task to child tables)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 07:57 PM
How do I get few fields from Change request on to the Work task table?
"Work task" has a "Field 1" (Reference to Task table)
"Field 1" can have Incident, change, Problem.....etc
How can I show/display fields from the change request table on to the "Work task" table. when I click configure > form layout. I do not see an option to DOT walk to change table as "Field 1" is referencing to Task table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 09:55 PM
HI @vtred ,
I trust you are doing great.
Identify the fields from the Change Request table that you want to display on the Work Task table.
Create corresponding fields on the Work Task table to store the values from the Change Request table. For example, if you want to display the "Assignment Group" field from Change Request, create a field called "Change Assignment Group" on the Work Task table.
In the Work Task table, navigate to the "Configure > Form Layout" option.
On the Form Layout page, locate the section where you want to display the fields from the Change Request table. For example, if you want to display them in a new section called "Change Details," click on the "Add Section" button and name it accordingly.
Within the new section, click on the "Add Field" button to add the fields you created on the Work Task table to correspond to the fields from the Change Request table. For example, add the "Change Assignment Group" field.
To populate the fields on the Work Task table with values from the Change Request, you can use a business rule or script. Here's an example of a business rule script that copies the "Assignment Group" field from the related Change Request to the "Change Assignment Group" field on the Work Task table:
(function executeRule(current, previous) {
var changeRequest = new GlideRecord('change_request');
if (changeRequest.get(current.field1)) {
current.change_assignment_group = changeRequest.assignment_group;
}
})(current, previous);
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 06:13 AM
I do not want to create new fields on the work task table, there can be more than 15 fields I would like to show.