mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Salesforce Node): Add HasOptedOutOfEmail field to lead resource (#5235)
This commit is contained in:
@@ -1081,6 +1081,9 @@ export class Salesforce implements INodeType {
|
||||
Company: company,
|
||||
LastName: lastname,
|
||||
};
|
||||
if (additionalFields.hasOptedOutOfEmail !== undefined) {
|
||||
body.HasOptedOutOfEmail = additionalFields.hasOptedOutOfEmail as boolean;
|
||||
}
|
||||
if (additionalFields.email !== undefined) {
|
||||
body.Email = additionalFields.email as string;
|
||||
}
|
||||
@@ -1185,6 +1188,9 @@ export class Salesforce implements INodeType {
|
||||
{ itemIndex: i },
|
||||
);
|
||||
}
|
||||
if (updateFields.hasOptedOutOfEmail !== undefined) {
|
||||
body.HasOptedOutOfEmail = updateFields.hasOptedOutOfEmail as boolean;
|
||||
}
|
||||
if (updateFields.lastname !== undefined) {
|
||||
body.LastName = updateFields.lastname as string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user