Retrieves a Salesforce Contact record with the given Contact Id.
This handler essentially has two phases: authentication and record retrieval.
The handler uses the SOAP API login method to retrieve the authentication details that are required for making the REST API requests. The required authentication values are instance and session id, these two values are retrieved by the login() helper method in the handler.
The handler uses the REST API to retrieve the Salesforce record. The handler's return variables are mapped from the Salesforce fields as show here (with the name of the Salesforce field on the left pointing to the name of the corresponding return variable):
Salutation => Salutation
FirstName => First Name
LastName => Last Name
Title => Title
Department => Department
MailingStreet => Mailing Street
MailingCity => Mailing City
MailingState => Mailing State/Province
MailingPostalCode => Mailing Zip/Postal Code
MailingCountry => Mailing Country
Phone => Phone
HomePhone => Home Phone
MobilePhone => Mobile
Fax => Fax
Email => Email
Description => Description
The username of the account that will be used for record retrieval
The password of the account that will be used for record retrieval.
The security token associated with the account used for record retrieval. To reset this value, log into Saleforce using the desired account and navigate to Setup -> My Personal Information -> Reset Security Token. A new token will be emailed to you.
The Id of the Salesforce Contact record that will be retrieved
The Salutation field of the Contact record
The First Name field of the Contact record
The Last Name field of the Contact record
The Title field of the Contact record
The Department field of the Contact record
The Mailing Street field of the Contact record
The Mailing City field of the Contact record
The Mailing State/Province field of the Contact record
Mailing Zip/Postal Code
The Mailing Zip/Postal Code field of the Contact record