/
Update an Existing Account
Update an Existing Account
Using only the ID and the New Value
SalesforceSession salesforceSession = new SalesforceSession(new LoginDetails("username@example.com", "salesforcePassword")); AccountService accountService = new AccountService(salesforceSession); Id accountId = (Id)"00190000002G9cF"; Account account = new Account(accountId); // Set the updated value account.NumberOfEmployees = 8000; SaveResult result = accountService.UpdateEntity(account); Assert.IsTrue(result.success); Assert.AreEqual(accountId, (Id)result.id);
Related content
Create Multiple Records in Salesforce with One API Call
Create Multiple Records in Salesforce with One API Call
Read with this
Create a New Account
Create a New Account
More like this
Saving to Salesforce from an MVC form
Saving to Salesforce from an MVC form
Read with this
Update an Existing Lead
Update an Existing Lead
More like this
Searching Salesforce Records
Searching Salesforce Records
Read with this
Query and Update a Person Account
Query and Update a Person Account
More like this