/
Retrieving a Specific Salesforce Entity
Retrieving a Specific Salesforce Entity
By Salesforce Id
This code block retrieves a Contact record from Salesforce:
ContactService contactService = new ContactService(salesforceSession); //This is the Id for a contact directly from the browsers address bar Id contactId = new Id("00390000001TjMHAA0"); Contact contact = contactService.GetByEntityId(contactId, new SObjectField[] {Contact.Fields.Id, Contact.Fields.FirstName, Contact.Fields.LastName}); Assert.IsNotNull(contact); Assert.AreEqual(contactId, contact.Id);
, multiple selections available,
Related content
Get Salesforce Entity
Get Salesforce Entity
More like this
Searching Salesforce Records
Searching Salesforce Records
More like this
Get External Identifier
Get External Identifier
More like this
Accessing Custom Objects and Custom Fields
Accessing Custom Objects and Custom Fields
Read with this
Working with the SalesforceGenericEntity
Working with the SalesforceGenericEntity
More like this
Executing Salesforce Partner API Methods
Executing Salesforce Partner API Methods
More like this