Updates a Salesforce Contact record with the given parameters and returns the Contact Id of the updated Contact record.
This handler essentially has two phases: authentication and record creation.
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 update the Salesforce record. The Salesforce record simply contains mappings provided by the @field_values instance variable. The handler's parameters are mapped to Salesforce fields in the node.xml as show here:
Salutation => Salutation
First Name => FirstName
Last Name => LastName
Title => Title
Department => Department
Mailing Street => MailingStreet
Mailing City => MailingCity
Mailing State/Province => MailingState
Mailing Zip/Postal Code => MailingPostalCode
Mailing Country => MailingCountry
Phone => Phone
Home Phone => HomePhone
Mobile => MobilePhone
Fax => Fax
Email => Email
Description => Description
The username of the account that will be used for record manipulation.
The password of the account that will be used for record manipulation
The security token associated with the account used for record manipulation 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 updated
Sets the Salutation field of the Contact record
Sets the First Name field of the Contact record
Sets the Last Name field of the Contact record
Sets the Title field of the Contact record
Sets the Department field of the Contact record
Sets the Mailing Street field of the Contact record
Sets the Mailing City field of the Contact record
Sets the Mailing State/Province field of the Contact record
Mailing Zip/Postal Code
Sets the Mailing Zip/Postal Code field of the Contact record
Sets the Mailing Country field of the Contact record