Update specific field for selected records using UI Action in list view

Hari S1
Tera Contributor

Hi, 
We want to display a UI Action button on the Incident list view. When a user selects one or more records and clicks the UI Action, a dialog box should appear prompting the user to enter a value (for example, to update the Description field).

How can we update a specific field (like Description) for the selected records from the list view using a UI Action in ServiceNow?

 

HariS1_0-1760724864403.png

 

 

 

Thanks

 

2 REPLIES 2

Syed14
Mega Guru

See this article, it is selecting record and sending dynamically created email, in this way you can create a modal for any field and then update that field in script include.

https://www.servicenow.com/community/incident-management-sow-forum/send-email-to-multiple-records-on... 

Narayana RC
Tera Contributor

Create a 'List Banner Button' that runs on selected records in the list view. Use the sample code below to retrieve the selected record sys_ids, and then call a Script Include function to update the description field of the selected records.

 

tblName = g_list.getTableName();
    selSysIds = g_list.getChecked();
    sysIdList = selSysIds.split(',');
    numSel = sysIdList.length;
 
 
If this information proves useful, kindly mark it as helpful or accepted solution.
Regards,
Siva