Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2022 11:09 PM
Hi , I wanted to put field values of short description field to a custom field of incident table in every record , in form view it is working , but in list view custom field is showing empty in every record
Solved! Go to Solution.
1 ACCEPTED SOLUTION

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 03:17 AM
Try below code:
var grIncident = new GlideRecord("incident");
grIncident.query();
while(grIncident.next()){
grIncident.setValue("custom_field_name", grIncident.getValue("description"));// update your custom field name and replace custom_field_name
grIncident.update();
}
Best Regards
Aman Kumar
Aman Kumar
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 02:49 AM

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 03:17 AM
Try below code:
var grIncident = new GlideRecord("incident");
grIncident.query();
while(grIncident.next()){
grIncident.setValue("custom_field_name", grIncident.getValue("description"));// update your custom field name and replace custom_field_name
grIncident.update();
}
Best Regards
Aman Kumar
Aman Kumar
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2022 03:36 AM
It worked now , thanks sir