I am currently creating a webservice to integrate an external website to our salesforce instance. This webservice should create a new portal account user and return the id back to the calling code. I'm thinking of using the Site class since it has convenient methods like Site.createPersonAccountPortalUser, etc. However, if I'm not mistaken, this only works inside classes that are inside sites/communities. Is there a way to make it work from the context of a webservice that is outside the community? Or is there a work around that I can use?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.