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
Ivan-mIvan-m 

Need to find field in Apex explorer for Active profile. Help!

My issue is:

I'm trying to make select of customer portal profiles using this expression:

 

Profile[] profiles = [Select p.name, p.id From Profile p where p.UserLicense.Name like '%Customer Portal%'];

 

But, I need to show only those profiles, which are enabled in Setup->Customer portal -> Settings. Then Click on portal -> edit profiles. Then select 'Active' check boxes on profiles.

I've looked thru all fields of profiles, but still can't find that values. What is the name for Customer portal object in apex explorer?

 

Any Ideas?

 

Thanks.

MayeUPAEPMayeUPAEP

Hope it could help you

 

Select p.Id, p.Name, (Select IsActive From Users) from Profile p

Ivan-mIvan-m

Thanks, but still doesn't work. Probably need something else. Need help.