I am using OOB data certification. While certifying CIs , user should not be able to certify empty elements. Please see image in the description.

Sachin Gavhane
Giga Guru

find_real_file.png

As shown in above pic, user should not be able to certify empty elements as marked in yellow. There should be some error when user tries to certify these empty elements.

Please help

1 ACCEPTED SOLUTION

Business Rule which you need to set up will look like below:

BR Details;

Table: Certification Element:

Condition: State Changes to Certified

Script :

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

	// Add your code here
	if(current.certified_value == ''){
		gs.addErrorMessage('Empty Field Values cannot be certified');
		current.setAbortAction(true);
	}

})(current, previous);

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

16 REPLIES 16

BillMartin
Mega Sage

Hi,

You can create ACL rules to be able to control who can certify or not.

https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/contextual-security/concept/access-control-rules.html

 

Thanks,

Bill

Requesting you to please explain in detail. Field which we certify is on cmdb_ci table or may be on some other table and certification is the process on cert_task table. So how should i proceed

?

am new to this so requesting you to explain me with some implementation snapshots

Hi,

 

You will need to elevate first as security admin.

find_real_file.png

find_real_file.png

You will see a lock icon if you have successfully elevated.

find_real_file.png

Navigate to ACL

find_real_file.png

under operation you will need to decide what type of access you would like to give.find_real_file.png

 

You will need to choose which table and field you are limiting access

 

find_real_file.png

 

Asterisk, means all fields or you can be really specific

find_real_file.png

 

Finally, make your group dynamic so a user login will not be able to edit view etc. based on his membership

find_real_file.png

 

my requirement is "user should not be able to certify  EMPTY elements in OOB data certification task". Using above ACL i dont think my requirement is satisfied.

Can you please look into it.