BR runs for some admin users and not for others !

ITA
Tera Contributor

Hi ,

I have a before Business Rule on the table 'problem' with error msg displayed that prevents the change of state from 'open' to 'resolved' or 'closed' if the problem still have open tasks . There are no conditions based on the role or user in the BR. The issue is that in list view ,when I run my tests, the BR works as expected on form and list  and does not allow the closure of a problem with open tasks but when the client tests it, he's able to close the problem in list view mode. We both have an admin role. I want to know if there are cases that override the BR, such as role-specific or other scenarios, that give him the possibility to change on list view and not execut the BR?

Thank you

3 REPLIES 3

Anil Lande
Kilo Patron

Can you please share your BR configuration?

Also have you tried impersonating another user and tested same scenario?

 

ITA
Tera Contributor

Hi @Anil Lande ,

Itried to impersonate with many users , aNd it works but ,only one "admin" user can edit from the list view . It's a simple BR before update on problem table, with 2 filter conditions (state is resolved OR state is closed) with the following code :

 

(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('problem_task');
	gr.addActiveQuery();
	gr.addQuery('problem',current.sys_id);
	gr.query();
	if (gr.next()) {
		gs.addErrorMessage(gs.getMessage('Check_Prbtask_Resoled'));
		current.setAbortAction(true);	
	}
})(current, previous);

 

 I dont know if he has a role that override the BR , is that even possible? because we have both admin role but the BR  works for me and not for him ?