- 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.

- 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();
}
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2022 11:27 PM
Are you updating the records after passing the values on a field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2022 11:36 PM
Yes ,
I created a new custom field and want to pass the value of short description in that field in every record in incident table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-14-2022 11:43 PM
Hi
What are you using to capture description in custom field?
If it is a one time activity, use a fix script for this.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-15-2022 12:02 AM
Hi can you share the code