mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
⚡ Add last name to contact:update on Salesforce Node (#1965)
This commit is contained in:
parent
5f76a5dc72
commit
40bcd9b20e
|
@ -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',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue