You need to sign in to do that
Don't have an account?

Customer Portal Info
Hey,
Is there a way of getting customer portal information in APEX?
For instance, I'd like to be able to get the portal ID so that I can conditionally display certain fields.
Regards
David
I don't believe you can get the portalId in Apex directly.
But you could have seperate pages and apex associated to each respective customer portal profile(s) if you have multiple portals. Or if you are using Visualforce, you could pass in a querystring parameter into the page that the controller uses to determine which portal the page is being rendered in.