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
2 changed files with 10 additions and 0 deletions

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;
}