/** * Salesforce Node - Version 1 * Discriminator: resource=lead, operation=create */ interface Credentials { salesforceOAuth2Api: CredentialReference; salesforceJwtApi: CredentialReference; } /** Represents a prospect or potential */ export type SalesforceV1LeadCreateParams = { resource: 'lead'; operation: 'create'; /** * OAuth Authorization Flow * @default oAuth2 */ authentication?: 'oAuth2' | 'jwt' | Expression; /** * Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account. */ company?: string | Expression | PlaceholderValue; /** * Required. Last name of the lead. Limited to 80 characters. */ lastname?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Annual revenue for the company of the lead */ annualRevenue?: number | Expression; /** City for the address of the lead */ city?: string | Expression | PlaceholderValue; /** Country of the lead */ country?: string | Expression | PlaceholderValue; /** Filter by custom fields * @default {} */ customFieldsUi?: { /** Custom Field */ customFieldsValues?: Array<{ /** The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ fieldId?: string | Expression; /** The value to set on custom field */ value?: string | Expression | PlaceholderValue; }>; }; /** Description of the lead */ description?: string | Expression | PlaceholderValue; /** Email address for the lead */ email?: string | Expression | PlaceholderValue; /** Fax number of the lead */ fax?: number | Expression; /** First name of the lead. Limited to 40 characters. */ firstname?: string | Expression | PlaceholderValue; /** Whether the lead doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out. * @default false */ hasOptedOutOfEmail?: boolean | Expression; /** Whether the lead doesn’t want to receive fax from Salesforce (true) or does (false). Label is Email Opt Out. * @default false */ hasOptedOutOfFax?: boolean | Expression; /** Website for the lead */ industry?: string | Expression | PlaceholderValue; /** Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner. * @default false */ IsUnreadByOwner?: boolean | Expression; /** References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com. */ jigsaw?: string | Expression | PlaceholderValue; /** Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ leadSource?: string | Expression; /** Contact’s mobile phone number */ mobilePhone?: string | Expression | PlaceholderValue; /** Number of employees at the lead’s company. Label is Employees. */ numberOfEmployees?: number | Expression; /** The owner of the lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ owner?: string | Expression; /** Phone number for the lead */ phone?: string | Expression | PlaceholderValue; /** Postal code for the address of the lead. Label is Zip/Postal Code. */ postalCode?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ recordTypeId?: string | Expression; /** Rating of the lead */ rating?: string | Expression | PlaceholderValue; /** Salutation for the lead */ salutation?: string | Expression | PlaceholderValue; /** State for the address of the lead */ state?: string | Expression | PlaceholderValue; /** Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ status?: string | Expression; /** Street number and name for the address of the lead */ street?: string | Expression | PlaceholderValue; /** Title for the lead, for example CFO or CEO */ title?: string | Expression | PlaceholderValue; /** Website for the lead */ website?: string | Expression | PlaceholderValue; }; }; export type SalesforceV1LeadCreateOutput = { id?: string; success?: boolean; }; export type SalesforceV1LeadCreateNode = { type: 'n8n-nodes-base.salesforce'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };