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

Version 1 Next »

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));
  • No labels