Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

This code block retrieves an Account record from Salesforce.

SalesforceSession salesforceSession = new SalesforceSession(new LoginDetails("username@example.com", "salesforcePassword"));
AccountService accountService = new AccountService(salesforceSession);

string accountNameToFind = "Zoo Creations";
Account matchingAccount = accountService.GetSingleByFieldEquals("Name", accountNameToFind);
Assert.IsNotNull(matchingAccount);
Assert.AreEqual(accountNameToFind, matchingAccount.Name);
  • No labels