Hi all,
I have the following scenario:
A customer (account) can be of different types and a customer can be hierarchically linked to another account.
Let's suppose that customer X (type a) is the father of customer Y (type b)
The logged in user (user1) on the portal has X as parentcustomerid.
The logged in user (user2) on the portal has Y as parentcustomerid.
On the portal there is an entity list showing the Orders (salesorder). An Order has a lookup pointing to account.
I want that the user1 can view all (and only) the Orders linked both to customer X and customer Y.
I want that the user2 can view all (and only) the Orders linked only to customer Y.
In oher words, based on the type of the parentcustomerid of a logged in user I want to apply a custom filter on the entity list.
How can I achieve that?
Thanks in advance.
*This post is locked for comments