Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Script on ACL of type processor

snowtech1
Tera Expert

Hello,

I have been trying to modify the availability of the email icon.

An acl which is always true works, makes it available for all users, but is for all tables.

I want to make it available only for one table. Is it possible to retrieve the table name from this acl?

current.getTableName() and current.sys_class_name don't seem to work.

find_real_file.png

ctomasi

Thanks in advance!

6 REPLIES 6

Chuck Tomasi
Tera Patron

I think the only way the processor knows anything about the table is if you pass it as a sysparm_ value in the URI and retrieve it with g_request.getParameter(). Take a look at some of the other processors and you'll get the idea.


Martin119
Tera Contributor

Hi @snowtech1,

 

May I ask whether you were able to resolve this issue? Were you able to get the table name in the processor ACL script?

 

@Chuck Tomasi and @Pradeep Sharma would you mind elaborating on your suggestion? Several processors are of type "java" and thus don't have possibilities for scripting, e.g., ExcelOutputProcessor, CSVProcessor, ...

 

Best regards

Martin