salesforce.json•24.1 kB
{
"nodeType": "n8n-nodes-base.salesforce",
"displayName": "Salesforce",
"description": "Consume Salesforce API",
"version": 1,
"properties": [
{
"name": "externalId",
"displayName": "Match Against",
"type": "options",
"default": "",
"description": "The field to check to see if the account already exists. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"upsert"
]
}
}
},
{
"name": "externalIdValue",
"displayName": "Value to Match",
"type": "string",
"default": "",
"description": "If this value exists in the 'match against' field, update the account. Otherwise create a new one.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"upsert"
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "Name of the account. Maximum size is 255 characters.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Account number assigned to this account (not the unique ID). Maximum size is 40 characters.",
"placeholder": "Add Field",
"options": [
{
"name": "accountNumber",
"displayName": "Account Number",
"type": "string",
"default": "",
"description": "Account number assigned to this account (not the unique ID). Maximum size is 40 characters."
},
{
"name": "annualRevenue",
"displayName": "Annual Revenue",
"type": "number",
"default": "",
"description": "Estimated annual revenue of the account"
},
{
"name": "accountSource",
"displayName": "Account Source Name or ID",
"type": "options",
"default": "",
"description": "The source of the account record. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "billingCity",
"displayName": "Billing City",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 40 characters."
},
{
"name": "billingCountry",
"displayName": "Billing Country",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 80 characters."
},
{
"name": "billingPostalCode",
"displayName": "Billing Postal Code",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 20 characters."
},
{
"name": "billingState",
"displayName": "Billing State",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 80 characters."
},
{
"name": "billingStreet",
"displayName": "Billing Street",
"type": "string",
"default": "",
"description": "Street address for the billing address of this account"
}
],
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "accountId",
"displayName": "Account ID",
"type": "string",
"default": "",
"description": "ID of account that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"update"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Account number assigned to this account (not the unique ID). Maximum size is 40 characters.",
"placeholder": "Add Field",
"options": [
{
"name": "accountNumber",
"displayName": "Account Number",
"type": "string",
"default": "",
"description": "Account number assigned to this account (not the unique ID). Maximum size is 40 characters."
},
{
"name": "accountSource",
"displayName": "Account Source Name or ID",
"type": "options",
"default": "",
"description": "The source of the account record. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
},
{
"name": "annualRevenue",
"displayName": "Annual Revenue",
"type": "number",
"default": "",
"description": "Estimated annual revenue of the account"
},
{
"name": "billingCity",
"displayName": "Billing City",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 40 characters."
},
{
"name": "billingCountry",
"displayName": "Billing Country",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 80 characters."
},
{
"name": "billingPostalCode",
"displayName": "Billing Postal Code",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 20 characters."
},
{
"name": "billingState",
"displayName": "Billing State",
"type": "string",
"default": "",
"description": "Details for the billing address of this account. Maximum size is 80 characters."
},
{
"name": "billingStreet",
"displayName": "Billing Street",
"type": "string",
"default": "",
"description": "Street address for the billing address of this account"
}
],
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"update"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Fields to include separated by ,",
"placeholder": "Add Field",
"options": [
{
"name": "fields",
"displayName": "Fields",
"type": "string",
"default": "",
"description": "Fields to include separated by ,"
}
],
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "Title of the note",
"required": true,
"displayOptions": {
"show": {
"resource": [
"account"
],
"operation": [
"addNote"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Add note to an account",
"options": [
{
"name": "Add Note",
"value": "addNote",
"description": "Add note to an account"
},
{
"name": "Create",
"value": "create",
"description": "Create an account"
},
{
"name": "Create or Update",
"value": "upsert",
"description": "Create a new account, or update the current one if it already exists (upsert)"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete an account"
},
{
"name": "Get",
"value": "get",
"description": "Get an account"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many accounts"
},
{
"name": "Get Summary",
"value": "getSummary",
"description": "Returns an overview of account's metadata"
},
{
"name": "Update",
"value": "update",
"description": "Update an account"
}
],
"displayOptions": {
"show": {
"resource": [
"account"
]
}
}
},
{
"name": "parentId",
"displayName": "Parent ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"attachment"
],
"operation": [
"create"
]
}
}
},
{
"name": "binaryPropertyName",
"displayName": "Input Binary Field",
"type": "string",
"default": "data",
"placeholder": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"attachment"
],
"operation": [
"create"
]
}
}
},
{
"name": "attachmentId",
"displayName": "Attachment ID",
"type": "string",
"default": "",
"description": "ID of attachment that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"attachment"
],
"operation": [
"update"
]
}
}
},
{
"name": "type",
"displayName": "Type Name or ID",
"type": "options",
"default": "",
"description": "The type of case. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"case"
],
"operation": [
"create"
]
}
}
},
{
"name": "caseId",
"displayName": "Case ID",
"type": "string",
"default": "",
"description": "ID of case that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"case"
],
"operation": [
"update"
]
}
}
},
{
"name": "lastname",
"displayName": "Last Name",
"type": "string",
"default": "",
"description": "Required. Last name of the contact. Limited to 80 characters.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "contactId",
"displayName": "Contact ID",
"type": "string",
"default": "",
"description": "ID of contact that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"update"
]
}
}
},
{
"name": "campaignId",
"displayName": "Campaign Name or ID",
"type": "options",
"default": "",
"description": "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>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"addToCampaign"
]
}
}
},
{
"name": "customObject",
"displayName": "Custom Object Name or ID",
"type": "options",
"default": "",
"description": "Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"customObject"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "customFieldsUi",
"displayName": "Fields",
"type": "fixedCollection",
"default": {},
"description": "Filter by custom fields",
"placeholder": "Add Field",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"customObject"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "recordId",
"displayName": "Record ID",
"type": "string",
"default": "",
"description": "Record ID to be updated",
"required": true,
"displayOptions": {
"show": {
"resource": [
"customObject"
],
"operation": [
"update"
]
}
}
},
{
"name": "apiName",
"displayName": "API Name",
"type": "string",
"default": "",
"description": "Required. API name of the flow.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"flow"
],
"operation": [
"invoke"
]
}
}
},
{
"name": "jsonParameters",
"displayName": "JSON Parameters",
"type": "boolean",
"default": false,
"description": "Whether the input variables should be set via the value-key pair UI or JSON/RAW",
"displayOptions": {
"show": {
"resource": [
"flow"
],
"operation": [
"invoke"
]
}
}
},
{
"name": "variablesJson",
"displayName": "Variables",
"type": "json",
"default": "",
"description": "Input variables as JSON object",
"displayOptions": {
"show": {
"resource": [
"flow"
],
"operation": [
"invoke"
],
"jsonParameters": [
true
]
}
}
},
{
"name": "variablesUi",
"displayName": "Variables",
"type": "fixedCollection",
"default": {},
"description": "The input variable to send",
"placeholder": "Add Variable",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"flow"
],
"operation": [
"invoke"
],
"jsonParameters": [
false
]
}
}
},
{
"name": "company",
"displayName": "Company",
"type": "string",
"default": "",
"description": "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.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"lead"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "leadId",
"displayName": "Lead ID",
"type": "string",
"default": "",
"description": "ID of Lead that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"lead"
],
"operation": [
"update"
]
}
}
},
{
"name": "closeDate",
"displayName": "Close Date",
"type": "dateTime",
"default": "",
"description": "Required. Date when the opportunity is expected to close.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"opportunity"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "stageName",
"displayName": "Stage Name or ID",
"type": "options",
"default": "",
"description": "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>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"opportunity"
],
"operation": [
"create",
"upsert"
]
}
}
},
{
"name": "opportunityId",
"displayName": "Opportunity ID",
"type": "string",
"default": "",
"description": "ID of opportunity that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"opportunity"
],
"operation": [
"update"
]
}
}
},
{
"name": "query",
"displayName": "Query",
"type": "string",
"default": "",
"description": "A SOQL query. An example query parameter string might look like: “SELECT+Name+FROM+MyObject”. If the SOQL query string is invalid, a MALFORMED_QUERY response is returned.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"search"
],
"operation": [
"query"
]
}
}
},
{
"name": "status",
"displayName": "Status Name or ID",
"type": "options",
"default": "",
"description": "The current status of the task, such as In Progress or Completed. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"create"
]
}
}
},
{
"name": "taskId",
"displayName": "Task ID",
"type": "string",
"default": "",
"description": "ID of task that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"update"
]
}
}
},
{
"name": "userId",
"displayName": "User ID",
"type": "string",
"default": "",
"description": "ID of user that needs to be fetched",
"required": true,
"displayOptions": {
"show": {
"resource": [
"user"
],
"operation": [
"get"
]
}
}
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "oAuth2",
"description": "OAuth Authorization Flow",
"options": [
{
"name": "OAuth2",
"value": "oAuth2"
},
{
"name": "OAuth2 JWT",
"value": "jwt"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "lead",
"description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners)",
"options": [
{
"name": "Account",
"value": "account",
"description": "Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and partners)"
},
{
"name": "Attachment",
"value": "attachment",
"description": "Represents a file that a has uploaded and attached to a parent object"
},
{
"name": "Case",
"value": "case",
"description": "Represents a case, which is a customer issue or problem"
},
{
"name": "Contact",
"value": "contact",
"description": "Represents a contact, which is an individual associated with an account"
},
{
"name": "Custom Object",
"value": "customObject",
"description": "Represents a custom object"
},
{
"name": "Document",
"value": "document",
"description": "Represents a document"
},
{
"name": "Flow",
"value": "flow",
"description": "Represents an autolaunched flow"
},
{
"name": "Lead",
"value": "lead",
"description": "Represents a prospect or potential"
},
{
"name": "Opportunity",
"value": "opportunity",
"description": "Represents an opportunity, which is a sale or pending deal"
},
{
"name": "Search",
"value": "search",
"description": "Search records"
},
{
"name": "Task",
"value": "task",
"description": "Represents a business activity such as making a phone call or other to-do items. In the user interface, and records are collectively referred to as activities."
},
{
"name": "User",
"value": "user",
"description": "Represents a person, which is one user in system"
}
]
}
],
"credentialsConfig": [
{
"name": "salesforceOAuth2Api",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}