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

Ankur Bawiskar
Tera Patron
Tera Patron

@Deactivate User 

Seems straight forward

What did you start with and where are you stuck?

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

I Have implemented but it is not working, as it is not updating the HR task record

UI Action.png

Hi @Deactivate User ,

 

The function name should be resetTask(), and can you show me your above configurations of ui action. Also send me your code in test formate.

 

Regards,

Shivangi

Please check 

Screenshot 2023-08-26 135313.png

 

Screenshot 2023-08-26 135347.png

 Please check