Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By Salesforce Id

 This code block retrieves a Contact record from Salesforce

Code Block
languagec#
ContactService contactService = new ContactService(salesforceSession);
 
//This is the case sensitive Id for a contact directly from the browsers address bar
string contactId = "00390000001TjMHAA0";
 
Contact contact = contactService.GetByEntityId(contactId);
Assert.IsNotNull(contact);
Assert.AreEqual(contactId, contact.Id);