Find your content:

Search form

You are here

Creating a customer portal user via apex


Site.createPortalUser call is available in apex everywhere or we can only use it inside SiteRegisterController.cls?

Attribution to: doga

Possible Suggestion/Solution #1

These are Site classes and you can use outside SiteRegisterController and in any apex class.You need not have this in only SiteRegisterController.cls .

SiteRegisterController.cls this is just an example class from salesforce which is for reference .You can make your own apex class and have Site classes.

Attribution to: Mohith Shrivastava
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content