+ Start a Discussion

Create New user in Salesforce using asp.net API

How can I create user in Salesforce using asp.net API? I can see sObject but I dont see the properties of setField.

Wonder WomanWonder Woman



You can write a custom Web Service in Apex to create a user. Having a custom web service will make it easier for you to set the profile you want and other properties and to make the call.

One you have it writen, import the WSDL of this web service into you Visual Studio (together with the enterprise WSDL of course to login).

From there it is easy. Just call your custom webservice with the parameters you define to it.

Make sure you use an Administrator user for the login to assure priviledge.


Hope this helps,