Hide a specific work notes if it contains a specific keyword fro non-admin users.

Mehant Kumar1
Tera Contributor

I want to hide a particular worknote if it contains a specific keyword for non-admin users, I don't want to hide the whole worknotes section but a particular comment. I'm not sure whether this feature even exists or not. 

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@Mehant Kumar1 No such OOTB feature exist, however you can create a query business rule on Journal Entry (sys_journal_field) table and check user role in it, if the user is non admin user and if the name of the table matches with the name field and value field on the record contains your specific keyword than add a query condition to skip that record. Ideally this way the record should not appear for a non admin user.

Thanks @Sandeep Rajput 

I can't think of a query to skip that particular record. Could you tell what the code will look like for that?