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

shivangi k
Kilo Sage

Hi @Deactivate User ,

 

You can user below mentioned code just do change filed name and field values, I added as per my knowledge.

shivangik_2-1692960954819.png

 

User these configurations:

shivangik_1-1692960930678.png

 

Please mark helpful and accept solution if it helped you.

 

Regards,

shivangi

can you please paste the full condition you added in the condition bar

 

Hi @Deactivate User ,

 

here it is:

gs.hasRole("sn_hr_core.case_write")&&(current.state!=3)&&(current.hr_task_type='integeration')&&(current.correlation_id.indexOf("PROCESSING FAILED"));

 

Please mark helpful and accept solution if it helped you.

 

Regards,

Shivangi

UI Action.png

 Added the same script but this UI action is not updating the HR task fields