- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2025 12:11 AM - edited 08-16-2025 12:12 AM
I have a widget which is trying to read the child accounts when the user is mentioned in the Customer User Relationships (sn_customerservice_contact_relationship). But because of Business Rule: Account query rules, user is not getting access to the child accounts.
I wrote the following script (with a dummy filter condition) to test my theory and the user is now able to access the child accounts.
However, the filter condition gives them access to all the child accounts. I don't want that to happen. User should have access only to those where he is mentioned in the Customer User Relationships.
What filter condition should I write for this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 01:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 01:35 AM
Since the customer user relationship is a different table, you can't directly access it from there. You will need to update the Account query rules to allow this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 01:43 AM
Manged to create a new Query which resolved my issue