How to restrict particular records using query business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 03:41 AM
Hi All,
How can I restrict HR Task records for "Requested for" user using query business rule.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 10:49 AM
@Pallavi pawar write new BR as below. for example I used ritm table you can replace hr task
Just add this line in advanced
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2023 12:28 PM
Hi Pallavi,
I suggest you look at existing BRs:
and specify what table has the field "Requested for". I don't see that on the hr_task table. An example script follows if you want to restrict the current user to those where the user is "Requested for"
var me = gs.getUserID();
current.addEncodedQuery("requested_for=" + me);
provided the column name is 'requested_for'.