/
Create a New Account
Create a New Account
This code block populates a new Account in Salesforce from Sitecore.
Account account = new Account(); account.Name = "FuseIT"; SalesforceSession salesforceSession = new SalesforceSession(new LoginDetails("username@example.com", "salesforcePassword")); AccountService accountService = new AccountService(salesforceSession); var saveResult = accountService.Insert(account); string newAccountId = null; if (saveResult.success) { newAccountId = account.Id; } Assert.IsTrue(accountService.ValidEntityId(newAccountId));
Related content
S4S Code Examples
S4S Code Examples
Read with this
Create a new Person Account
Create a new Person Account
More like this
Saving to Salesforce from an MVC form
Saving to Salesforce from an MVC form
Read with this
Update an Existing Account
Update an Existing Account
More like this
Using S4S
Using S4S
Read with this
Install Security Connector for Account Lookup (Optional)
Install Security Connector for Account Lookup (Optional)
More like this