Help me to create List choice UI Action with Script

Deactivate User
Tera Contributor

Create a new UI action(List action) "Reset Task state for mass update" on the HR task table with "List choice" to "true" to display only to the users with "sn_hr_core.case_writer" role and current.state! = 3 (closed complete) and HR task type is "integration" and "Correlation ID" contains "PROCESSING FAILED" when clicked on the list action should display a confirmation pop-up when licked on "Ok" the set the below field values in the HR task

Task Type: Integration
HR Task state – ready
Assignment Group – empty
Correlation ID– empty

12 REPLIES 12

Hi @Deactivate User 

 

Have you added your function in onclick field?

 

Regards,

Yes I have added

@Deactivate User 

for list choice g_form object won't work

For your logic to work you need to get list of selected records using g_list.getChecked() and then use GlideRecord or GlideAjax to set the field values

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader