/** * Salesforce Node - Version 1 * Discriminator: resource=opportunity, operation=update */ interface Credentials { salesforceOAuth2Api: CredentialReference; salesforceJwtApi: CredentialReference; } /** Represents an opportunity, which is a sale or pending deal */ export type SalesforceV1OpportunityUpdateParams = { resource: 'opportunity'; operation: 'update'; /** * OAuth Authorization Flow * @default oAuth2 */ authentication?: 'oAuth2' | 'jwt' | Expression; /** * ID of opportunity that needs to be fetched */ opportunityId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** ID of the account associated with this opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ accountId?: string | Expression; /** Estimated total sale amount */ amount?: number | Expression; /** ID of the campaign that needs to be fetched. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ campaignId?: string | Expression; /** Required. Date when the opportunity is expected to close. */ closeDate?: string | Expression; /** 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; }>; }; /** A description of the opportunity. Label is Contact Description. Limit: 32 KB. */ description?: string | Expression | PlaceholderValue; /** It is implied, but not directly controlled, by the StageName field */ forecastCategoryName?: 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; /** Required. Last name of the opportunity. Limited to 80 characters. */ name?: string | Expression | PlaceholderValue; /** Description of next task in closing opportunity. Limit: 255 characters. */ nextStep?: string | Expression | PlaceholderValue; /** The owner of the opportunity. 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 opportunity */ phone?: string | Expression | PlaceholderValue; /** ID of a related Pricebook2 object */ pricebook2Id?: string | Expression | PlaceholderValue; /** Percentage of estimated confidence in closing the opportunity */ probability?: number | Expression; /** Required. Date when the opportunity is expected to close. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ stageName?: string | Expression; /** Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type. */ type?: 'Business' | 'New Business' | Expression; }; }; export type SalesforceV1OpportunityUpdateOutput = { success?: boolean; }; export type SalesforceV1OpportunityUpdateNode = { type: 'n8n-nodes-base.salesforce'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };