function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shekhar DautpureShekhar Dautpure 

Custom Related list based on query

Dear All

I have 2 objects. Master (Account) and Child (SWOT__C). 

SWOT__C has 2 recordtype .. R1 and R2

I have 2 profiles. P1 and P2

If a user with Profile P1 navigates to Account - SWOT page , he should see account with SWOT (where RecordType = R1)

If a user with Profile P2 navigates to Account - SWOT page , he should see account with SWOT (where RecordType = R1 or R2)

I am trying to do this using visualforce , however not able to do it. can you suggest if there is any other option  which i can use for my requirement , 

Profile P1 --> On SWOT only have R1
Profile P2 on SWOT have P2 as default , but also have access to P1. 

alternative solution would be a great help