Business Rule/ACL to allow users to view only the records they created in list view.

Nitesh Balusu
Giga Guru

Hello,

 

Could someone tell me a business rule/script that allows users to only view records they created in list view? This should not block them from creating new records or modifying their existing records

 

Thanks.

5 REPLIES 5

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi,

 

Incident has that functionality for end user as a good example: 

find_real_file.png

 

//Göran

I had tried something similar on my custom table. but it is not letting the user view fields when they want to create a new record as in the new form loads up blank. I am not sure why its removing field viewing access for new records.

 

answer=(function(){

if(current.getValue("sys_created_by")== gs.getUserName() || current.getValue("sys_updated_by")==gs.getUserName()){

return true;

}

return false;

})();

 

 

What all ACLs you created? There shouldn't be an ACL with Table.*

Also did you extend the table from an existing table?


Please mark this response as correct or helpful if it assisted you with your question.

Can you show a list over all the ACLs you have created for the table?

since for the create functionality depending on if it's a extended table or not and what ACLs here are, you might different ones.

//Göran