/** * Salesforce Node - Version 1 * Discriminator: resource=case, operation=update */ interface Credentials { salesforceOAuth2Api: CredentialReference; salesforceJwtApi: CredentialReference; } /** Represents a case, which is a customer issue or problem */ export type SalesforceV1CaseUpdateParams = { resource: 'case'; operation: 'update'; /** * OAuth Authorization Flow * @default oAuth2 */ authentication?: 'oAuth2' | 'jwt' | Expression; /** * ID of case that needs to be fetched */ caseId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** ID of the account associated with this case */ accountId?: string | Expression | PlaceholderValue; /** ID of the associated Contact */ contactId?: 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; }>; }; /** A text description of the case. Limit: 32 KB. */ description?: string | Expression | PlaceholderValue; /** Whether the case has been escalated (true) or not * @default false */ isEscalated?: boolean | Expression; /** The source of the case, such as Email, Phone, or Web. Label is Case Origin. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ origin?: string | Expression; /** The owner of the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ owner?: string | Expression; /** The ID of the parent case in the hierarchy. The label is Parent Case. */ ParentId?: string | Expression | PlaceholderValue; /** The importance or urgency of the case, such as High, Medium, or Low. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ priority?: string | Expression; /** The reason why the case was created, such as Instructions not clear, or User didn’t attend training. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ reason?: string | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ recordTypeId?: string | Expression; /** The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the IsClosed flag. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ status?: string | Expression; /** The subject of the case. Limit: 255 characters. */ subject?: string | Expression | PlaceholderValue; /** The company name that was entered when the case was created. This field can't be updated after the case has been created.. */ suppliedCompany?: string | Expression | PlaceholderValue; /** The email address that was entered when the case was created. This field can't be updated after the case has been created. */ suppliedEmail?: string | Expression | PlaceholderValue; /** The name that was entered when the case was created. This field can't be updated after the case has been created. */ suppliedName?: string | Expression | PlaceholderValue; /** The phone number that was entered when the case was created. This field can't be updated after the case has been created. */ suppliedPhone?: string | Expression | PlaceholderValue; /** The type of case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ type?: string | Expression; }; }; export type SalesforceV1CaseUpdateOutput = { success?: boolean; }; export type SalesforceV1CaseUpdateNode = { type: 'n8n-nodes-base.salesforce'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };