diff --git a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts index 3ec78b6e11..4e9901fc6e 100644 --- a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts +++ b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts @@ -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', diff --git a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts index 9afccd687f..08269b0ca7 100644 --- a/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts +++ b/packages/nodes-base/nodes/Salesforce/Salesforce.node.ts @@ -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; }