interface SendGridNodeParameters {
additionalFields?:
| {
addressUi?: {
addressValues: {
address1?: string;
address2?: string;
};
};
alternateEmails?: string;
city?: string;
country?: string;
customFieldsUi?: {
customFieldValues: {
fieldId?: string;
fieldValue?: string;
}[];
};
firstName?: string;
lastName?: string;
listIdsUi?: { listIdValues: { listIds?: unknown[] } };
postalCode?: string;
stateProvinceRegion?: string;
}
| {
attachments?: string;
bccEmail?: string;
categories?: string;
ccEmail?: string;
enableSandbox?: boolean;
headers?: {
details: { key?: string; value?: string }[];
};
ipPoolName?: string;
replyToEmail?: string;
sendAt?: string;
};
by?: "id"
| "email";
contactId?: string;
contactSample?: boolean;
contentType?: "text/plain" | "text/html";
contentValue?: string;
deleteAll?: boolean;
deleteContacts?: boolean;
dynamicTemplate?: boolean;
dynamicTemplateFields?: {
fields: { key?: string; value?: string }[];
};
email?: string;
filters?: { query?: string };
fromEmail?: string;
fromName?: string;
ids?: string;
limit?: number;
listId?: string;
name?: string;
operation?:
| "create"
| "get"
| "getAll"
| "update"
| "delete"
| "upsert"
| "send";
resource?: "contact"
| "list"
| "mail";
returnAll?: boolean;
subject?: string;
templateId?: string;
toEmail?: string;
}Properties§
readonly additional Fields?:
| {
addressUi?: {
addressValues: {
address1?: string;
address2?: string;
};
};
alternateEmails?: string;
city?: string;
country?: string;
customFieldsUi?: {
customFieldValues: {
fieldId?: string;
fieldValue?: string;
}[];
};
firstName?: string;
lastName?: string;
listIdsUi?: { listIdValues: { listIds?: unknown[] } };
postalCode?: string;
stateProvinceRegion?: string;
}
| {
attachments?: string;
bccEmail?: string;
categories?: string;
ccEmail?: string;
enableSandbox?: boolean;
headers?: {
details: { key?: string; value?: string }[];
};
ipPoolName?: string;
replyToEmail?: string;
sendAt?: string;
}readonly by?: "id" | "email"Search the user by ID or email Default: "id"
readonly contact Id?: stringID of the contact
readonly contact Sample?: booleanWhether to return the contact sample
readonly content Type?: "text/plain" | "text/html"MIME type of the email to send Default: "text/plain"
readonly content Value?: stringMessage body of the email to send
readonly delete All?: booleanWhether all contacts will be deleted
readonly delete Contacts?: booleanWhether to delete all contacts on the list
readonly dynamic Template?: booleanWhether this email will contain a dynamic template
readonly dynamic Template Fields?: { ... }Default: {} Type options: {"multipleValues":true}
readonly email?: stringPrimary email for the contact
readonly filters?: { ... }Default: {}
readonly from Email?: stringEmail address of the sender of the email
readonly from Name?: stringName of the sender of the email
readonly ids?: stringID of the contact. Multiple can be added separated by comma.
readonly limit?: numberMax number of results to return Default: 100 Type options: {"minValue":1,"maxValue":1000}
readonly list Id?: stringID of the list
readonly name?: stringName of the list
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "delete"
| "upsert"
| "send"Default: "create"
readonly resource?: "contact" | "list" | "mail"Default: "list"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly subject?: stringSubject of the email to send
readonly template Id?: stringChoose from the list, or specify an ID using an expression Default: [] Type options: {"loadOptionsMethod":"getTemplateIds"}
readonly to Email?: stringComma-separated list of recipient email addresses
Default: {}