Business Rule: Account query rules

vidhya_mouli
Giga Sage

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. 

 

vidhya_mouli_0-1755328348999.png

 

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?

1 ACCEPTED SOLUTION

vidhya_mouli
Giga Sage

Manged to create a new Query which resolved my issue

vidhya_mouli_0-1755506606522.png

 

View solution in original post

2 REPLIES 2

Mark Manders
Mega Patron

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

vidhya_mouli
Giga Sage

Manged to create a new Query which resolved my issue

vidhya_mouli_0-1755506606522.png