fe5f59b807 | ||
---|---|---|
nuget | ||
src | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
README.md |
README.md
Salesforce.SOAPHelpers
This .NET library provides a way for interacting with Salesforce's Force.com SOAP APIs.
Getting Started
-
Install the NuGet package:
Install-Package WadeWegner.Salesforce.SOAPHelpers
-
Create an instance of the
SalesforceClient
:var salesforceClient = new SalesforceClient();
-
Call login and accept the results:
var loginResult = await salesforceClient.Login(_username, _password, _organizationId);
-
Create the custom object by calling
CreateCustomObject
:var customObject = "MyCustomObject"; var createObjectResult = await salesforceClient.CreateCustomObject( customObject, loginResult.SessionId, loginResult.MetadataServerUrl);`
-
Create the custom field by calling
CreateCustomField
:var customField = "MyCustomField"; var createFieldResult = await salesforceClient.CreateCustomField( customObject, customField, loginResult.SessionId, loginResult.MetadataServerUrl);
Enjoy!