Advanced Work Assignment: Looking to change functionality of "ACCEPT" in Inbox.

Niranjan2
Tera Contributor

Hi everyone,

when the state is New and i click on Accept in inbox, case assign myself and state changes to Open-assigned. Where as when the case is Open-unassigned and i click on Accept in inbox, case assign myself and state remains to Open-unassigned.

I tried modifying condition for Accept Ui action as well, it works on the case form but not on AWA inbox Accept.
I would like to know where we can modify Accept button in AWA., attaching screenshot for reference.
Any help/suggestion Appreciated.

Niranjan2_0-1726603314634.png

 

 

@Rajesh_Bhise 

@Sumanth16 
@Jitendra Diwak1 


Thank you

3 REPLIES 3

praveen_rongali
ServiceNow Employee
ServiceNow Employee

Hi @Niranjan2 , 
I am also looking for the same solution, have you the resolved the problem, please do let me know if you have any lead on this problem.

Hi @praveen_rongali 

Please refer the screenshot, i have created a new business rule for this on Work item table.
this worked for my requirement.

Niranjan2_0-1740496148534.png

Niranjan2_1-1740496240353.png

(function executeRule(current, previous /*null when async*/) {

	current.active = true;
	var caseGr = new GlideRecord('sn_customerservice_case');
	caseGr.addQuery('sys_id',current.document_id);
	caseGr.query();
	if(caseGr.next()){
		caseGr.state = 10; //state open
		caseGr.update();
	}

})(current, previous);

 let me know if you have any questions.

praveen_rongali
ServiceNow Employee
ServiceNow Employee

Thanks @Niranjan2  for you solution, I will look into this and let you know if I have any issues.