Hi Arshid,
Thanks for the reply..! I'm sorry for not elaborating the requirement.
Here, hierarchy has levels like
Sales executive-->Sr Executive-->AM-->RM-->VP-->CEO. ( --> reports to ).
CEO can have multiple VPs and VPs will have multiple RMs....this chain will continue till sales executives.
Searching conditions as follows:
1. CEO can search/edit all his subordinates created opportunities.As he is the superior at top level, no condition is necessary here.
2. VPs will have fellow VPs, and respective RMs as subordinates. This chain follows till Executives.
Here, VP should nt be able to view other VP's(and his subordinates) related opportunities.
3. The same conditions applicable for AM and RM ( see the above reports to chain )
4. Executives also shouldn't see the other fellow executives created opportunities.
I need to access the data from a ztable, as no proper org model is maintained. I dont know how to create the ztable and what will be the field names in the ztable to access/maintain the entire hierarchy.
Please, help me on this..!
Thanks in advance,
Bhanu