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
sarthak05sarthak05 

Showing Partner Account and Customer Account in two different tabs

Hi ,

   In my organization we are heavily using  customer portal and Partner portal. Inside the partner portal I need to show two tabs 1.Partner accounts(for viewing all the subsequent partners of current partner) and 2.Customer Accounts(for viewing all the subsequent customers of current partner). Can anyone suggest me how to achieve this ? If at all it can be done.

 

Thanking you

regards

Sarthak

SJTECH2009SJTECH2009

you can query like this

]

String RecordTypeId1 = [select Name,Id from RecordType where Name = 'Test'] 

 

String RecordTypeId2 = [select Name,Id from RecordType where Name = 'Test1']

 

[select Name,Id from Account where RecordTypeId =: RecordTypeId1 ]

sarthak05sarthak05

hi ,

      thanks a lot for yor reply. Actually I did not want to write a lot of code for achieving this. So instead I created just two views one for partner and another for customer and putting filter on the "Type" field in accounts object.

 

Thanking you

regards

Sarthak