- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Manged to create a new Query which resolved my issue