Aaron R
12/13/2024, 11:21 PMCeligo AI
12/13/2024, 11:22 PMAI generated answer (using internal Slack threads):To restrict a search to only specific roles in NetSuite, you can use the role criteria in your search. Here are a few methods: 1. Employee Search: Go to Employee Search > Criteria > Role is [Specific Role]. This will return all employees with the specified role. 2. User Management: Go to Setup > Users/Roles > Manage Users > Filter to the role. This will show all users with the specified role. 3. Role Users Subtab: On the role > Users subtab. This is to view only users with the specified role. If you want to create a search for users with only a specific role, you'll need to use a summary search with a summary criteria. Here's an example of how you can do this:
CASE WHEN {role} != 'Employee Center' THEN 1 END
(formula(numeric) SUM equal to 0)
This formula checks if the role is not 'Employee Center', then assigns a value of 1. The SUM equal to 0 condition ensures that only users with the 'Employee Center' role are returned.
Remember to summarise the result columns (in this case GROUP by item) when using a summary search.
If you want to limit records visible based on the user's role when running a suitelet, you can use a client script to get the actual user's role and then query and set the list data on the client side. This method might be a bit slower since it's client-side, but it's a viable workaround.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/13/2024, 11:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85886097
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842329562
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840471327
Celigo AI
12/13/2024, 11:22 PM