mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -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.
|
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.`,
|
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',
|
displayName: 'Lead Source',
|
||||||
name: 'leadSource',
|
name: 'leadSource',
|
||||||
|
|
|
@ -1337,6 +1337,9 @@ export class Salesforce implements INodeType {
|
||||||
if (!Object.keys(updateFields).length) {
|
if (!Object.keys(updateFields).length) {
|
||||||
throw new NodeOperationError(this.getNode(), 'You must add at least one update field');
|
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) {
|
if (updateFields.fax !== undefined) {
|
||||||
body.Fax = updateFields.fax as string;
|
body.Fax = updateFields.fax as string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue