mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Fix issue with firstname when creating/updating a lead (#1545)
This commit is contained in:
@@ -906,8 +906,8 @@ export class Salesforce implements INodeType {
|
|||||||
if (additionalFields.industry !== undefined) {
|
if (additionalFields.industry !== undefined) {
|
||||||
body.Industry = additionalFields.industry as string;
|
body.Industry = additionalFields.industry as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.firstName !== undefined) {
|
if (additionalFields.firstname !== undefined) {
|
||||||
body.FirstName = additionalFields.firstName as string;
|
body.FirstName = additionalFields.firstname as string;
|
||||||
}
|
}
|
||||||
if (additionalFields.leadSource !== undefined) {
|
if (additionalFields.leadSource !== undefined) {
|
||||||
body.LeadSource = additionalFields.leadSource as string;
|
body.LeadSource = additionalFields.leadSource as string;
|
||||||
@@ -942,7 +942,6 @@ export class Salesforce implements INodeType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
responseData = await salesforceApiRequest.call(this, 'POST', '/sobjects/lead', body);
|
responseData = await salesforceApiRequest.call(this, 'POST', '/sobjects/lead', body);
|
||||||
}
|
}
|
||||||
//https://developer.salesforce.com/docs/api-explorer/sobject/Lead/patch-lead-id
|
//https://developer.salesforce.com/docs/api-explorer/sobject/Lead/patch-lead-id
|
||||||
@@ -998,8 +997,8 @@ export class Salesforce implements INodeType {
|
|||||||
if (updateFields.industry !== undefined) {
|
if (updateFields.industry !== undefined) {
|
||||||
body.Industry = updateFields.industry as string;
|
body.Industry = updateFields.industry as string;
|
||||||
}
|
}
|
||||||
if (updateFields.firstName !== undefined) {
|
if (updateFields.firstname !== undefined) {
|
||||||
body.FirstName = updateFields.firstName as string;
|
body.FirstName = updateFields.firstname as string;
|
||||||
}
|
}
|
||||||
if (updateFields.leadSource !== undefined) {
|
if (updateFields.leadSource !== undefined) {
|
||||||
body.LeadSource = updateFields.leadSource as string;
|
body.LeadSource = updateFields.leadSource as string;
|
||||||
|
|||||||
Reference in New Issue
Block a user