Add last name to contact:update on Salesforce Node (#1965)

This commit is contained in:
Iván Ovejero 2021-07-02 23:41:40 +02:00 committed by GitHub
parent 5f76a5dc72
commit 40bcd9b20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -570,6 +570,13 @@ export const contactFields = [
description: `references the ID of a contact in Data.com.
If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.`,
},
{
displayName: 'Last Name',
name: 'lastName',
type: 'string',
default: '',
description: 'Last name of the contact. Limited to 80 characters.',
},
{
displayName: 'Lead Source',
name: 'leadSource',

View file

@ -1337,6 +1337,9 @@ export class Salesforce implements INodeType {
if (!Object.keys(updateFields).length) {
throw new NodeOperationError(this.getNode(), 'You must add at least one update field');
}
if (updateFields.lastName !== undefined) {
body.LastName = updateFields.lastName as string;
}
if (updateFields.fax !== undefined) {
body.Fax = updateFields.fax as string;
}