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


1 Answer 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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .