n8n-nodes-base 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/nodes/AgileCrm/AgileCrm.node.js +32 -12
  2. package/dist/nodes/AgileCrm/AgileCrm.node.js.map +1 -1
  3. package/dist/nodes/AgileCrm/CompanyDescription.js +80 -8
  4. package/dist/nodes/AgileCrm/CompanyDescription.js.map +1 -1
  5. package/dist/nodes/Code/Code.node.js +4 -1
  6. package/dist/nodes/Code/Code.node.js.map +1 -1
  7. package/dist/nodes/Code/JavaScriptSandbox.d.ts +1 -1
  8. package/dist/nodes/Code/JavaScriptSandbox.js +1 -1
  9. package/dist/nodes/Code/JavaScriptSandbox.js.map +1 -1
  10. package/dist/nodes/DateTime/V2/DateTimeV2.node.js +16 -9
  11. package/dist/nodes/DateTime/V2/DateTimeV2.node.js.map +1 -1
  12. package/dist/nodes/DateTime/test/node/workflow.nullDate_v2.json +93 -0
  13. package/dist/nodes/Function/Function.node.js +1 -1
  14. package/dist/nodes/Function/Function.node.js.map +1 -1
  15. package/dist/nodes/FunctionItem/FunctionItem.node.js +1 -1
  16. package/dist/nodes/FunctionItem/FunctionItem.node.js.map +1 -1
  17. package/dist/nodes/ItemLists/V1/ItemListsV1.node.js +2 -24
  18. package/dist/nodes/ItemLists/V1/ItemListsV1.node.js.map +1 -1
  19. package/dist/nodes/ItemLists/V2/ItemListsV2.node.js +2 -24
  20. package/dist/nodes/ItemLists/V2/ItemListsV2.node.js.map +1 -1
  21. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js +1 -24
  22. package/dist/nodes/ItemLists/V3/actions/itemList/sort.operation.js.map +1 -1
  23. package/dist/nodes/ItemLists/V3/helpers/utils.d.ts +2 -1
  24. package/dist/nodes/ItemLists/V3/helpers/utils.js +17 -1
  25. package/dist/nodes/ItemLists/V3/helpers/utils.js.map +1 -1
  26. package/dist/nodes/Microsoft/Excel/v2/methods/listSearch.js +15 -2
  27. package/dist/nodes/Microsoft/Excel/v2/methods/listSearch.js.map +1 -1
  28. package/dist/nodes/MongoDb/GenericFunctions.d.ts +1 -0
  29. package/dist/nodes/MongoDb/GenericFunctions.js +13 -1
  30. package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -1
  31. package/dist/nodes/MongoDb/MongoDb.node.js +24 -3
  32. package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -1
  33. package/dist/nodes/MongoDb/MongoDbProperties.d.ts +2 -0
  34. package/dist/nodes/MongoDb/MongoDbProperties.js +239 -0
  35. package/dist/nodes/MongoDb/MongoDbProperties.js.map +1 -0
  36. package/dist/nodes/MySql/MySql.node.js +2 -1
  37. package/dist/nodes/MySql/MySql.node.js.map +1 -1
  38. package/dist/nodes/MySql/v2/actions/versionDescription.js +1 -1
  39. package/dist/nodes/MySql/v2/actions/versionDescription.js.map +1 -1
  40. package/dist/nodes/MySql/v2/helpers/utils.js +15 -1
  41. package/dist/nodes/MySql/v2/helpers/utils.js.map +1 -1
  42. package/dist/nodes/Postgres/Postgres.node.js +2 -1
  43. package/dist/nodes/Postgres/Postgres.node.js.map +1 -1
  44. package/dist/nodes/Postgres/v2/actions/versionDescription.js +1 -1
  45. package/dist/nodes/Postgres/v2/actions/versionDescription.js.map +1 -1
  46. package/dist/nodes/Postgres/v2/helpers/utils.js +55 -6
  47. package/dist/nodes/Postgres/v2/helpers/utils.js.map +1 -1
  48. package/dist/nodes/RssFeedRead/RssFeedRead.node.js +23 -1
  49. package/dist/nodes/RssFeedRead/RssFeedRead.node.js.map +1 -1
  50. package/dist/types/nodes.json +12 -10
  51. package/package.json +6 -6
  52. package/dist/nodes/MongoDb/MongoDbDescription.d.ts +0 -2
  53. package/dist/nodes/MongoDb/MongoDbDescription.js +0 -259
  54. package/dist/nodes/MongoDb/MongoDbDescription.js.map +0 -1
@@ -6,7 +6,7 @@
6
6
  {"displayName":"Adalo","name":"n8n-nodes-base.adalo","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"collectionId\"]}}","description":"Consume Adalo API","defaults":{"name":"Adalo"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"adaloApi","required":true}],"requestDefaults":{"baseURL":"=https://api.adalo.com/v0/apps/{{$credentials.appId}}"},"requestOperations":{"pagination":{"type":"offset","properties":{"limitParameter":"limit","offsetParameter":"offset","pageSize":100,"type":"query"}}},"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"default":"collection","options":[{"name":"Collection","value":"collection"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Create","value":"create","description":"Create a row","routing":{"send":{"preSend":[null]},"request":{"method":"POST","url":"=/collections/{{$parameter[\"collectionId\"]}}"}},"action":"Create a row"},{"name":"Delete","value":"delete","description":"Delete a row","routing":{"request":{"method":"DELETE","url":"=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"},"output":{"postReceive":[{"type":"set","properties":{"value":"={{ { \"success\": true } }}"}}]}},"action":"Delete a row"},{"name":"Get","value":"get","description":"Retrieve a row","routing":{"request":{"method":"GET","url":"=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"}},"action":"Retrieve a row"},{"name":"Get Many","value":"getAll","description":"Retrieve many rows","routing":{"request":{"method":"GET","url":"=/collections/{{$parameter[\"collectionId\"]}}","qs":{"limit":"={{$parameter[\"limit\"]}}"}},"send":{"paginate":"={{$parameter[\"returnAll\"]}}"},"output":{"postReceive":[{"type":"rootProperty","properties":{"property":"records"}}]}},"action":"Retrieve all rows"},{"name":"Update","value":"update","description":"Update a row","routing":{"send":{"preSend":[null]},"request":{"method":"PUT","url":"=/collections/{{$parameter[\"collectionId\"]}}/{{$parameter[\"rowId\"]}}"}},"action":"Update a row"}],"default":"getAll"},{"displayName":"Collection ID","name":"collectionId","type":"string","required":true,"default":"","description":"Open your Adalo application and click on the three buttons beside the collection name, then select API Documentation","hint":"You can find information about app's collections on https://app.adalo.com/apps/<strong>your-app-id</strong>/api-docs","displayOptions":{"show":{"resource":["collection"]}}},{"displayName":"Row ID","name":"rowId","type":"string","displayOptions":{"show":{"operation":["get","delete","update"],"resource":["collection"]}},"default":"","required":true},{"displayName":"Data to Send","name":"dataToSend","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties match destination column names"},{"name":"Define Below for Each Column","value":"defineBelow","description":"Set the value for each destination column"}],"displayOptions":{"show":{"operation":["create","update"],"resource":["collection"]}},"default":"defineBelow","description":"Whether to insert the input data this node receives in the new row"},{"displayName":"Inputs to Ignore","name":"inputsToIgnore","type":"string","displayOptions":{"show":{"operation":["create","update"],"dataToSend":["autoMapInputData"],"resource":["collection"]}},"default":"","description":"List of input properties to avoid sending, separated by commas. Leave empty to send all properties.","placeholder":"Enter properties..."},{"displayName":"Fields to Send","name":"fieldsUi","placeholder":"Add Field","type":"fixedCollection","description":"Field must be defined in the collection, otherwise it will be ignored. If field defined in the collection is not set here, it will be set to null.","typeOptions":{"multipleValueButtonText":"Add Field to Send","multipleValues":true},"displayOptions":{"show":{"operation":["create","update"],"dataToSend":["defineBelow"],"resource":["collection"]}},"default":{},"options":[{"displayName":"Field","name":"fieldValues","values":[{"displayName":"Field ID","name":"fieldId","type":"string","default":""},{"displayName":"Field Value","name":"fieldValue","type":"string","default":""}]}]},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"operation":["getAll"],"resource":["collection"]}}},{"displayName":"Limit","name":"limit","type":"number","default":100,"typeOptions":{"minValue":1,"maxValue":100},"displayOptions":{"show":{"operation":["getAll"],"resource":["collection"],"returnAll":[false]}},"description":"Max number of results to return"}],"codex":{"categories":["Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.adalo/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/adalo"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Adalo/adalo.svg"},
7
7
  {"displayName":"Affinity","name":"n8n-nodes-base.affinity","group":["output"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Affinity API","defaults":{"name":"Affinity"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"affinityApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"List","value":"list"},{"name":"List Entry","value":"listEntry"},{"name":"Organization","value":"organization"},{"name":"Person","value":"person"}],"default":"organization"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["list"]}},"options":[{"name":"Get","value":"get","description":"Get a list","action":"Get a list"},{"name":"Get Many","value":"getAll","description":"Get many lists","action":"Get many lists"}],"default":"get"},{"displayName":"List ID","name":"listId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["list"],"operation":["get"]}},"description":"The unique ID of the list object to be retrieved"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["list"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["list"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":10},"default":5,"description":"Max number of results to return"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["listEntry"]}},"options":[{"name":"Create","value":"create","description":"Create a list entry","action":"Create a list entry"},{"name":"Delete","value":"delete","description":"Delete a list entry","action":"Delete a list entry"},{"name":"Get","value":"get","description":"Get a list entry","action":"Get a list entry"},{"name":"Get Many","value":"getAll","description":"Get many list entries","action":"Get many list entries"}],"default":"create"},{"displayName":"List Name or ID","name":"listId","type":"options","required":true,"typeOptions":{"loadOptionsMethod":"getLists"},"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["create"]}},"description":"The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Entity ID","name":"entityId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["create"]}},"description":"The unique ID of the entity (person, organization, or opportunity) to add to this list"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["listEntry"],"operation":["create"]}},"options":[{"displayName":"Creator ID","name":"creator_id","type":"string","default":"","description":"The ID of a Person resource who should be recorded as adding the entry to the list. Must be a person who can access Affinity. If not provided the creator defaults to the owner of the API key."}]},{"displayName":"List Name or ID","name":"listId","type":"options","required":true,"typeOptions":{"loadOptionsMethod":"getLists"},"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["get"]}},"description":"The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"List Entry ID","name":"listEntryId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["get"]}},"description":"The unique ID of the list entry object to be retrieved"},{"displayName":"List Name or ID","name":"listId","type":"options","typeOptions":{"loadOptionsMethod":"getLists"},"displayOptions":{"show":{"resource":["listEntry"],"operation":["getAll"]}},"default":"","description":"The unique ID of the list whose list entries are to be retrieved. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["listEntry"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["listEntry"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":10},"default":5,"description":"Max number of results to return"},{"displayName":"List Name or ID","name":"listId","type":"options","typeOptions":{"loadOptionsMethod":"getLists"},"required":true,"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["delete"]}},"description":"The unique ID of the list that contains the specified list_entry_id. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"List Entry ID","name":"listEntryId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["listEntry"],"operation":["delete"]}},"description":"The unique ID of the list entry object to be deleted"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["organization"]}},"options":[{"name":"Create","value":"create","description":"Create an organization","action":"Create an organization"},{"name":"Delete","value":"delete","description":"Delete an organization","action":"Delete an organization"},{"name":"Get","value":"get","description":"Get an organization","action":"Get an organization"},{"name":"Get Many","value":"getAll","description":"Get many organizations","action":"Get many organizations"},{"name":"Update","value":"update","description":"Update an organization","action":"Update an organization"}],"default":"create"},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["organization"],"operation":["create"]}},"description":"The name of the organization"},{"displayName":"Domain","name":"domain","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["organization"],"operation":["create"]}},"description":"The domain name of the organization"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["organization"],"operation":["create"]}},"options":[{"displayName":"Person Names or IDs","name":"persons","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getPersons"},"default":[],"description":"Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Organization ID","name":"organizationId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["organization"],"operation":["update"]}},"description":"Unique identifier for the organization"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["organization"],"operation":["update"]}},"options":[{"displayName":"Domain","name":"domain","type":"string","default":"","description":"The domain name of the organization"},{"displayName":"Name","name":"name","type":"string","default":"","description":"The name of the organization"},{"displayName":"Person Names or IDs","name":"persons","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getPersons"},"default":[],"description":"Persons that the new organization will be associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Organization ID","name":"organizationId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["organization"],"operation":["get"]}},"description":"Unique identifier for the organization"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["organization"],"operation":["get"]}},"options":[{"displayName":"With Interaction Dates","name":"withInteractionDates","type":"boolean","default":false,"description":"Whether interaction dates will be present on the returned resources"}]},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["organization"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["organization"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":10},"default":5,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["organization"],"operation":["getAll"]}},"options":[{"displayName":"Term","name":"term","type":"string","default":"","description":"A string used to search all the organizations in your team’s address book. This could be an email address, a first name or a last name."},{"displayName":"With Interaction Dates","name":"withInteractionDates","type":"boolean","default":false,"description":"Whether interaction dates will be present on the returned resources"}]},{"displayName":"Organization ID","name":"organizationId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["organization"],"operation":["delete"]}},"description":"Unique identifier for the organization"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["person"]}},"options":[{"name":"Create","value":"create","description":"Create a person","action":"Create a person"},{"name":"Delete","value":"delete","description":"Delete a person","action":"Delete a person"},{"name":"Get","value":"get","description":"Get a person","action":"Get a person"},{"name":"Get Many","value":"getAll","description":"Get many persons","action":"Get many people"},{"name":"Update","value":"update","description":"Update a person","action":"Update a person"}],"default":"create"},{"displayName":"First Name","name":"firstName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["person"],"operation":["create"]}},"description":"The first name of the person"},{"displayName":"Last Name","name":"lastName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["person"],"operation":["create"]}},"description":"The last name of the person"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["person"],"operation":["create"]}},"options":[{"displayName":"Organization Names or IDs","name":"organizations","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getOrganizations"},"default":[],"description":"Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Emails","name":"emails","type":"string","description":"The email addresses of the person","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add To Email"},"displayOptions":{"show":{"resource":["person"],"operation":["create"]}},"placeholder":"info@example.com","default":[]},{"displayName":"Person ID","name":"personId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["person"],"operation":["update"]}},"description":"Unique identifier for the person"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["person"],"operation":["update"]}},"options":[{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"The first name of the person"},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"The last name of the person"},{"displayName":"Organization Names or IDs","name":"organizations","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getOrganizations"},"default":[],"description":"Organizations that the person is associated with. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Emails","name":"emails","type":"string","description":"The email addresses of the person","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add To Email"},"displayOptions":{"show":{"resource":["person"],"operation":["update"]}},"placeholder":"info@example.com","default":[]},{"displayName":"Person ID","name":"personId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["person"],"operation":["get"]}},"description":"Unique identifier for the person"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["person"],"operation":["get"]}},"options":[{"displayName":"With Interaction Dates","name":"withInteractionDates","type":"boolean","default":false,"description":"Whether interaction dates will be present on the returned resources"}]},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["person"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["person"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":10},"default":5,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["person"],"operation":["getAll"]}},"options":[{"displayName":"Term","name":"term","type":"string","default":"","description":"A string used to search all the persons in your team’s address book. This could be an email address, a first name or a last name."},{"displayName":"With Interaction Dates","name":"withInteractionDates","type":"boolean","default":false,"description":"Whether interaction dates will be present on the returned resources"}]},{"displayName":"Person ID","name":"personId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["person"],"operation":["delete"]}},"description":"Unique identifier for the person"}],"codex":{"categories":["Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.affinity/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/affinity"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Affinity/affinity.png"},
8
8
  {"displayName":"Affinity Trigger","name":"n8n-nodes-base.affinityTrigger","group":["trigger"],"version":1,"description":"Handle Affinity events via webhooks","defaults":{"name":"Affinity Trigger"},"inputs":[],"outputs":["main"],"credentials":[{"name":"affinityApi","required":true}],"webhooks":[{"name":"default","httpMethod":"POST","responseMode":"onReceived","path":"webhook"}],"properties":[{"displayName":"Events","name":"events","type":"multiOptions","options":[{"name":"field_value.created","value":"field_value.created"},{"name":"field_value.deleted","value":"field_value.deleted"},{"name":"field_value.updated","value":"field_value.updated"},{"name":"field.created","value":"field.created"},{"name":"field.deleted","value":"field.deleted"},{"name":"field.updated","value":"field.updated"},{"name":"file.created","value":"file.created"},{"name":"file.deleted","value":"file.deleted"},{"name":"list_entry.created","value":"list_entry.created"},{"name":"list_entry.deleted","value":"list_entry.deleted"},{"name":"list.created","value":"list.created"},{"name":"list.deleted","value":"list.deleted"},{"name":"list.updated","value":"list.updated"},{"name":"note.created","value":"note.created"},{"name":"note.deleted","value":"note.deleted"},{"name":"note.updated","value":"note.updated"},{"name":"opportunity.created","value":"opportunity.created"},{"name":"opportunity.deleted","value":"opportunity.deleted"},{"name":"opportunity.updated","value":"opportunity.updated"},{"name":"organization.created","value":"organization.created"},{"name":"organization.deleted","value":"organization.deleted"},{"name":"organization.updated","value":"organization.updated"},{"name":"person.created","value":"person.created"},{"name":"person.deleted","value":"person.deleted"},{"name":"person.updated","value":"person.updated"}],"default":[],"required":true,"description":"Webhook events that will be enabled for that endpoint"}],"codex":{"categories":["Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.affinitytrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/affinity"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Affinity/affinity.png"},
9
- {"displayName":"Agile CRM","name":"n8n-nodes-base.agileCrm","subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","group":["transform"],"version":1,"description":"Consume Agile CRM API","defaults":{"name":"Agile CRM"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"agileCrmApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Company","value":"company"},{"name":"Contact","value":"contact"},{"name":"Deal","value":"deal"}],"default":"contact"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["contact"]}},"options":[{"name":"Create","value":"create","description":"Create a new contact","action":"Create a contact"},{"name":"Delete","value":"delete","description":"Delete a contact","action":"Delete a contact"},{"name":"Get","value":"get","description":"Get a contact","action":"Get a contact"},{"name":"Get Many","value":"getAll","description":"Get many contacts","action":"Get many contacts"},{"name":"Update","value":"update","description":"Update contact properties","action":"Update a contact"}],"default":"get"},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular contact"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"returnAll":[false]}},"default":20,"description":"Max number of results to return"},{"displayName":"Filter","name":"filterType","type":"options","options":[{"name":"None","value":"none"},{"name":"Build Manually","value":"manual"},{"name":"JSON","value":"json"}],"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":"none"},{"displayName":"Must Match","name":"matchType","type":"options","options":[{"name":"Any Filter","value":"anyFilter"},{"name":"All Filters","value":"allFilters"}],"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["manual"]}},"default":"anyFilter"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":false,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Filters","name":"filters","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["manual"]}},"default":{},"placeholder":"Add Condition","options":[{"displayName":"Conditions","name":"conditions","values":[{"displayName":"Field","name":"field","type":"string","default":"","description":"Any searchable field"},{"displayName":"Condition Type","name":"condition_type","type":"options","options":[{"name":"After","value":"AFTER"},{"name":"Before","value":"BEFORE"},{"name":"Between","value":"BETWEEN"},{"name":"Equals","value":"EQUALS"},{"name":"Last","value":"LAST"},{"name":"Not Equal","value":"NOTEQUALS"},{"name":"On","value":"ON"}],"default":"EQUALS"},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Value 2","name":"value2","type":"string","displayOptions":{"show":{"condition_type":["BETWEEN"]}},"default":""}]}]},{"displayName":"See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters","name":"jsonNotice","type":"notice","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Filters (JSON)","name":"filterJson","type":"string","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"options":[{"displayName":"Sort","name":"sort","type":"fixedCollection","placeholder":"Add Sort","default":[],"options":[{"displayName":"Sort","name":"sort","values":[{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"Ascending","value":"ASC"},{"name":"Descending","value":"DESC"}],"default":"ASC","description":"The sorting direction"},{"displayName":"Field","name":"field","type":"string","default":"","description":"The sorting field"}]}]}]},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["contact"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Contacts address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Home","value":"home"},{"name":"Postal","value":"postal"},{"name":"Office","value":"office"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Company","name":"company","type":"string","default":"","description":"Company Name"},{"displayName":"Email","name":"emailOptions","type":"fixedCollection","default":{},"description":"Contact email","typeOptions":{"multipleValues":true},"options":[{"displayName":"Email Properties","name":"emailProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of Email","options":[{"name":"Work","value":"work"},{"name":"Personal","value":"personal"}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","required":true,"default":""}]}]},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"Contact first name"},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"Contact last name"},{"displayName":"Lead Score","name":"leadScore","type":"number","default":"","description":"Lead score of contact","typeOptions":{"minValue":0}},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of contact (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Phone","name":"phoneOptions","type":"fixedCollection","default":{},"description":"Contacts phone","typeOptions":{"multipleValues":true},"options":[{"displayName":"Phone Properties","name":"phoneProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of phone number","options":[{"name":"Home","value":"home"},{"name":"Home Fax","value":"homeFax"},{"name":"Main","value":"main"},{"name":"Mobile","value":"mobile"},{"name":"Other","value":"other"},{"name":"Work","value":"work"},{"name":"Work Fax","value":"workFax"}]},{"displayName":"Number","name":"number","type":"string","required":true,"default":"","description":"Phone number"}]}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Professional title"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Contacts websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["delete"]}},"default":"","description":"ID of contact to delete"},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["update"]}},"default":"","description":"Unique identifier for a particular contact"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["contact"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Contacts address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Home","value":"home"},{"name":"Office","value":"office"},{"name":"Postal","value":"postal"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Company","name":"company","type":"string","default":"","description":"Company Name"},{"displayName":"Email","name":"emailOptions","type":"fixedCollection","default":{},"description":"Contact email","typeOptions":{"multipleValues":true},"options":[{"displayName":"Email Properties","name":"emailProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of Email","options":[{"name":"Work","value":"work"},{"name":"Personal","value":"personal"}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","required":true,"default":""}]}]},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"Contact first name"},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"Contact last name"},{"displayName":"Lead Score","name":"leadScore","type":"number","default":"","description":"Lead score of contact","typeOptions":{"minValue":0}},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of contact (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Phone","name":"phoneOptions","type":"fixedCollection","default":{},"description":"Contacts phone","typeOptions":{"multipleValues":true},"options":[{"displayName":"Phone Properties","name":"phoneProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of phone number","options":[{"name":"Home","value":"home"},{"name":"Home Fax","value":"homeFax"},{"name":"Main","value":"main"},{"name":"Mobile","value":"mobile"},{"name":"Other","value":"other"},{"name":"Work","value":"work"},{"name":"Work Fax","value":"workFax"}]},{"displayName":"Number","name":"number","type":"string","required":true,"default":"","description":"Phone number"}]}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Professional title"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Contacts websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["company"]}},"options":[{"name":"Create","value":"create","description":"Create a new company","action":"Create a company"},{"name":"Delete","value":"delete","description":"Delete a company","action":"Delete a company"},{"name":"Get","value":"get","description":"Get a company","action":"Get a company"},{"name":"Get Many","value":"getAll","description":"Get many companies","action":"Get many companies"},{"name":"Update","value":"update","description":"Update company properties","action":"Update a company"}],"default":"get"},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular company"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"returnAll":[false]}},"default":20,"description":"Max number of results to return"},{"displayName":"Filter","name":"filterType","type":"options","options":[{"name":"None","value":"none"},{"name":"Build Manually","value":"manual"},{"name":"JSON","value":"json"}],"displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":"none"},{"displayName":"Must Match","name":"matchType","type":"options","options":[{"name":"Any Filter","value":"anyFilter"},{"name":"All Filters","value":"allFilters"}],"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["manual"]}},"default":"anyFilter"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":false,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Filters","name":"filters","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["manual"]}},"default":{},"placeholder":"Add Condition","options":[{"displayName":"Conditions","name":"conditions","values":[{"displayName":"Field","name":"field","type":"string","default":"","description":"Any searchable field"},{"displayName":"Condition Type","name":"condition_type","type":"options","options":[{"name":"After","value":"AFTER"},{"name":"Before","value":"BEFORE"},{"name":"Between","value":"BETWEEN"},{"name":"Equals","value":"EQUALS"},{"name":"Last","value":"LAST"},{"name":"Not Equal","value":"NOTEQUALS"},{"name":"On","value":"ON"}],"default":"EQUALS"},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Value 2","name":"value2","type":"string","displayOptions":{"show":{"condition_type":["BETWEEN"]}},"default":""}]}]},{"displayName":"See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters","name":"jsonNotice","type":"notice","displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Filters (JSON)","name":"filterJson","type":"string","displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"options":[{"displayName":"Sort","name":"sort","type":"fixedCollection","placeholder":"Add Sort","default":[],"options":[{"displayName":"Sort","name":"sort","values":[{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"Ascending","value":"ASC"},{"name":"Descending","value":"DESC"}],"default":"ASC","description":"The sorting direction"},{"displayName":"Field","name":"field","type":"string","default":"","description":"The sorting field"}]}]}]},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["company"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["company"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company address"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company email"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Company name"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Company phone"},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of company (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to company, for easy management of companys. This is not applicable for companies."},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","description":"Companies websites","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["delete"]}},"default":"","description":"ID of company to delete"},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["update"]}},"default":"","description":"Unique identifier for a particular company"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["company"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["company"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company address"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company email"},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of company (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to company, for easy management of companys. This is not applicable for companies."},{"displayName":"Name","name":"name","type":"string","default":"","description":"Company name"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Company phone"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Companys websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["deal"]}},"options":[{"name":"Create","value":"create","description":"Create a new deal","action":"Create a deal"},{"name":"Delete","value":"delete","description":"Delete a deal","action":"Delete a deal"},{"name":"Get","value":"get","description":"Get a deal","action":"Get a deal"},{"name":"Get Many","value":"getAll","description":"Get many deals","action":"Get many deals"},{"name":"Update","value":"update","description":"Update deal properties","action":"Update a deal"}],"default":"get"},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular deal"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"description":"Max number of results to return","default":20,"displayOptions":{"show":{"resource":["deal"],"operation":["getAll"],"returnAll":[false]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["deal"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Close Date","name":"closeDate","type":"dateTime","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Closing date of deal"},{"displayName":"Expected Value","name":"expectedValue","type":"number","required":true,"typeOptions":{"minValue":0,"maxValue":1000000000000},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":1,"description":"Expected Value of deal"},{"displayName":"Milestone","name":"milestone","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Milestone of deal"},{"displayName":"Name","name":"name","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Name of deal"},{"displayName":"Probability","name":"probability","type":"number","required":true,"typeOptions":{"minValue":0,"maxValue":100},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":50,"description":"Expected probability"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["deal"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Contact IDs","name":"contactIds","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add ID"},"default":[],"description":"Unique contact identifiers"},{"displayName":"Custom Data","name":"customData","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["delete"]}},"default":"","description":"ID of deal to delete"},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["update"]}},"default":"","description":"ID of deal to update"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["deal"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["deal"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["deal"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Expected Value","name":"expectedValue","type":"number","typeOptions":{"minValue":0,"maxValue":10000},"default":"","description":"Expected Value of deal"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Name of deal"},{"displayName":"Probability","name":"probability","type":"number","typeOptions":{"minValue":0,"maxValue":100},"default":50,"description":"Expected Value of deal"},{"displayName":"Contact IDs","name":"contactIds","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add ID"},"default":[],"description":"Unique contact identifiers"},{"displayName":"Custom Data","name":"customData","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]}],"codex":{"categories":["Marketing & Content","Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.agilecrm/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/agileCrm"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/AgileCrm/agilecrm.png"},
9
+ {"displayName":"Agile CRM","name":"n8n-nodes-base.agileCrm","subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","group":["transform"],"version":1,"description":"Consume Agile CRM API","defaults":{"name":"Agile CRM"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"agileCrmApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Company","value":"company"},{"name":"Contact","value":"contact"},{"name":"Deal","value":"deal"}],"default":"contact"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["contact"]}},"options":[{"name":"Create","value":"create","description":"Create a new contact","action":"Create a contact"},{"name":"Delete","value":"delete","description":"Delete a contact","action":"Delete a contact"},{"name":"Get","value":"get","description":"Get a contact","action":"Get a contact"},{"name":"Get Many","value":"getAll","description":"Get many contacts","action":"Get many contacts"},{"name":"Update","value":"update","description":"Update contact properties","action":"Update a contact"}],"default":"get"},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular contact"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"returnAll":[false]}},"default":20,"description":"Max number of results to return"},{"displayName":"Filter","name":"filterType","type":"options","options":[{"name":"None","value":"none"},{"name":"Build Manually","value":"manual"},{"name":"JSON","value":"json"}],"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":"none"},{"displayName":"Must Match","name":"matchType","type":"options","options":[{"name":"Any Filter","value":"anyFilter"},{"name":"All Filters","value":"allFilters"}],"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["manual"]}},"default":"anyFilter"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":false,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Filters","name":"filters","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["manual"]}},"default":{},"placeholder":"Add Condition","options":[{"displayName":"Conditions","name":"conditions","values":[{"displayName":"Field","name":"field","type":"string","default":"","description":"Any searchable field"},{"displayName":"Condition Type","name":"condition_type","type":"options","options":[{"name":"After","value":"AFTER"},{"name":"Before","value":"BEFORE"},{"name":"Between","value":"BETWEEN"},{"name":"Equals","value":"EQUALS"},{"name":"Last","value":"LAST"},{"name":"Not Equal","value":"NOTEQUALS"},{"name":"On","value":"ON"}],"default":"EQUALS"},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Value 2","name":"value2","type":"string","displayOptions":{"show":{"condition_type":["BETWEEN"]}},"default":""}]}]},{"displayName":"See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters","name":"jsonNotice","type":"notice","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Filters (JSON)","name":"filterJson","type":"string","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"options":[{"displayName":"Sort","name":"sort","type":"fixedCollection","placeholder":"Add Sort","default":[],"options":[{"displayName":"Sort","name":"sort","values":[{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"Ascending","value":"ASC"},{"name":"Descending","value":"DESC"}],"default":"ASC","description":"The sorting direction"},{"displayName":"Field","name":"field","type":"string","default":"","description":"The sorting field"}]}]}]},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["contact"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Contacts address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Home","value":"home"},{"name":"Postal","value":"postal"},{"name":"Office","value":"office"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Company","name":"company","type":"string","default":"","description":"Company Name"},{"displayName":"Email","name":"emailOptions","type":"fixedCollection","default":{},"description":"Contact email","typeOptions":{"multipleValues":true},"options":[{"displayName":"Email Properties","name":"emailProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of Email","options":[{"name":"Work","value":"work"},{"name":"Personal","value":"personal"}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","required":true,"default":""}]}]},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"Contact first name"},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"Contact last name"},{"displayName":"Lead Score","name":"leadScore","type":"number","default":"","description":"Lead score of contact","typeOptions":{"minValue":0}},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of contact (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Phone","name":"phoneOptions","type":"fixedCollection","default":{},"description":"Contacts phone","typeOptions":{"multipleValues":true},"options":[{"displayName":"Phone Properties","name":"phoneProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of phone number","options":[{"name":"Home","value":"home"},{"name":"Home Fax","value":"homeFax"},{"name":"Main","value":"main"},{"name":"Mobile","value":"mobile"},{"name":"Other","value":"other"},{"name":"Work","value":"work"},{"name":"Work Fax","value":"workFax"}]},{"displayName":"Number","name":"number","type":"string","required":true,"default":"","description":"Phone number"}]}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Professional title"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Contacts websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["delete"]}},"default":"","description":"ID of contact to delete"},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"displayOptions":{"show":{"resource":["contact"],"operation":["update"]}},"default":"","description":"Unique identifier for a particular contact"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["contact"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-contacts---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Contacts address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Home","value":"home"},{"name":"Office","value":"office"},{"name":"Postal","value":"postal"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Company","name":"company","type":"string","default":"","description":"Company Name"},{"displayName":"Email","name":"emailOptions","type":"fixedCollection","default":{},"description":"Contact email","typeOptions":{"multipleValues":true},"options":[{"displayName":"Email Properties","name":"emailProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of Email","options":[{"name":"Work","value":"work"},{"name":"Personal","value":"personal"}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","required":true,"default":""}]}]},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"Contact first name"},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"Contact last name"},{"displayName":"Lead Score","name":"leadScore","type":"number","default":"","description":"Lead score of contact","typeOptions":{"minValue":0}},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of contact (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Phone","name":"phoneOptions","type":"fixedCollection","default":{},"description":"Contacts phone","typeOptions":{"multipleValues":true},"options":[{"displayName":"Phone Properties","name":"phoneProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of phone number","options":[{"name":"Home","value":"home"},{"name":"Home Fax","value":"homeFax"},{"name":"Main","value":"main"},{"name":"Mobile","value":"mobile"},{"name":"Other","value":"other"},{"name":"Work","value":"work"},{"name":"Work Fax","value":"workFax"}]},{"displayName":"Number","name":"number","type":"string","required":true,"default":"","description":"Phone number"}]}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Professional title"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Contacts websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["company"]}},"options":[{"name":"Create","value":"create","description":"Create a new company","action":"Create a company"},{"name":"Delete","value":"delete","description":"Delete a company","action":"Delete a company"},{"name":"Get","value":"get","description":"Get a company","action":"Get a company"},{"name":"Get Many","value":"getAll","description":"Get many companies","action":"Get many companies"},{"name":"Update","value":"update","description":"Update company properties","action":"Update a company"}],"default":"get"},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular company"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"returnAll":[false]}},"default":20,"description":"Max number of results to return"},{"displayName":"Filter","name":"filterType","type":"options","options":[{"name":"None","value":"none"},{"name":"Build Manually","value":"manual"},{"name":"JSON","value":"json"}],"displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":"none"},{"displayName":"Must Match","name":"matchType","type":"options","options":[{"name":"Any Filter","value":"anyFilter"},{"name":"All Filters","value":"allFilters"}],"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["manual"]}},"default":"anyFilter"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"default":false,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Filters","name":"filters","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["manual"]}},"default":{},"placeholder":"Add Condition","options":[{"displayName":"Conditions","name":"conditions","values":[{"displayName":"Field","name":"field","type":"string","default":"","description":"Any searchable field"},{"displayName":"Condition Type","name":"condition_type","type":"options","options":[{"name":"After","value":"AFTER"},{"name":"Before","value":"BEFORE"},{"name":"Between","value":"BETWEEN"},{"name":"Equals","value":"EQUALS"},{"name":"Last","value":"LAST"},{"name":"Not Equal","value":"NOTEQUALS"},{"name":"On","value":"ON"}],"default":"EQUALS"},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Value 2","name":"value2","type":"string","displayOptions":{"show":{"condition_type":["BETWEEN"]}},"default":""}]}]},{"displayName":"See <a href=\"https://github.com/agilecrm/rest-api#121-get-contacts-by-dynamic-filter\" target=\"_blank\">Agile CRM guide</a> to creating filters","name":"jsonNotice","type":"notice","displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Filters (JSON)","name":"filterJson","type":"string","displayOptions":{"show":{"resource":["company"],"operation":["getAll"],"filterType":["json"]}},"default":""},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["getAll"]}},"options":[{"displayName":"Sort","name":"sort","type":"fixedCollection","placeholder":"Add Sort","default":[],"options":[{"displayName":"Sort","name":"sort","values":[{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"Ascending","value":"ASC"},{"name":"Descending","value":"DESC"}],"default":"ASC","description":"The sorting direction"},{"displayName":"Field","name":"field","type":"string","default":"","description":"The sorting field"}]}]}]},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["company"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["company"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Company address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Postal","value":"postal"},{"name":"Office","value":"office"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company email"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Company name"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Company phone"},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of company (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to company, for easy management of companys. This is not applicable for companies."},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","description":"Companies websites","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["delete"]}},"default":"","description":"ID of company to delete"},{"displayName":"Company ID","name":"companyId","type":"string","required":true,"displayOptions":{"show":{"resource":["company"],"operation":["update"]}},"default":"","description":"Unique identifier for a particular company"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["company"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["company"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-companys---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["company"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Address","name":"addressOptions","type":"fixedCollection","default":{},"description":"Company address","typeOptions":{"multipleValues":true},"options":[{"displayName":"Address Properties","name":"addressProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of address","options":[{"name":"Postal","value":"postal"},{"name":"Office","value":"office"}]},{"displayName":"Address","name":"address","type":"string","required":true,"default":"","description":"Full address"}]}]},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Company email"},{"displayName":"Star Value","name":"starValue","type":"options","default":"","description":"Rating of company (Max value 5). This is not applicable for companies.","options":[{"name":"0","value":0},{"name":"1","value":1},{"name":"2","value":2},{"name":"3","value":3},{"name":"4","value":4},{"name":"5","value":5}]},{"displayName":"Tags","name":"tags","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Tag"},"default":[],"description":"Unique identifiers added to company, for easy management of companys. This is not applicable for companies."},{"displayName":"Name","name":"name","type":"string","default":"","description":"Company name"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Company phone"},{"displayName":"Website","name":"websiteOptions","type":"fixedCollection","default":{},"description":"Companys websites","typeOptions":{"multipleValues":true},"options":[{"displayName":"Website Properties.","name":"websiteProperties","values":[{"displayName":"Type","name":"subtype","type":"options","required":true,"default":"","description":"Type of website","options":[{"name":"Facebook","value":"facebook"},{"name":"Feed","value":"feed"},{"name":"Flickr","value":"flickr"},{"name":"Github","value":"github"},{"name":"Google Plus","value":"googlePlus"},{"name":"LinkedIn","value":"linkedin"},{"name":"Skype","value":"skype"},{"name":"Twitter","value":"twitter"},{"name":"URL","value":"url"},{"name":"Xing","value":"xing"},{"name":"YouTube","value":"youtube"}]},{"displayName":"URL","name":"url","type":"string","required":true,"default":"","description":"Website URL"}]}]},{"displayName":"Custom Properties","name":"customProperties","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Sub Type","name":"subtype","type":"string","default":"","description":"Property sub type"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["deal"]}},"options":[{"name":"Create","value":"create","description":"Create a new deal","action":"Create a deal"},{"name":"Delete","value":"delete","description":"Delete a deal","action":"Delete a deal"},{"name":"Get","value":"get","description":"Get a deal","action":"Get a deal"},{"name":"Get Many","value":"getAll","description":"Get many deals","action":"Get many deals"},{"name":"Update","value":"update","description":"Update deal properties","action":"Update a deal"}],"default":"get"},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["get"]}},"default":"","description":"Unique identifier for a particular deal"},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1},"description":"Max number of results to return","default":20,"displayOptions":{"show":{"resource":["deal"],"operation":["getAll"],"returnAll":[false]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["deal"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Close Date","name":"closeDate","type":"dateTime","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Closing date of deal"},{"displayName":"Expected Value","name":"expectedValue","type":"number","required":true,"typeOptions":{"minValue":0,"maxValue":1000000000000},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":1,"description":"Expected Value of deal"},{"displayName":"Milestone","name":"milestone","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Milestone of deal"},{"displayName":"Name","name":"name","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":"","description":"Name of deal"},{"displayName":"Probability","name":"probability","type":"number","required":true,"typeOptions":{"minValue":0,"maxValue":100},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"default":50,"description":"Expected probability"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["deal"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["deal"],"operation":["create"],"jsonParameters":[false]}},"options":[{"displayName":"Contact IDs","name":"contactIds","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add ID"},"default":[],"description":"Unique contact identifiers"},{"displayName":"Custom Data","name":"customData","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["delete"]}},"default":"","description":"ID of deal to delete"},{"displayName":"Deal ID","name":"dealId","type":"string","required":true,"displayOptions":{"show":{"resource":["deal"],"operation":["update"]}},"default":"","description":"ID of deal to update"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["deal"],"operation":["update"]}}},{"displayName":"Additional Fields","name":"additionalFieldsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"default":"","displayOptions":{"show":{"resource":["deal"],"operation":["update"],"jsonParameters":[true]}},"description":"Object of values to set as described <a href=\"https://github.com/agilecrm/rest-api#1-deals---companies-api\">here</a>"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["deal"],"operation":["update"],"jsonParameters":[false]}},"options":[{"displayName":"Expected Value","name":"expectedValue","type":"number","typeOptions":{"minValue":0,"maxValue":10000},"default":"","description":"Expected Value of deal"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Name of deal"},{"displayName":"Probability","name":"probability","type":"number","typeOptions":{"minValue":0,"maxValue":100},"default":50,"description":"Expected Value of deal"},{"displayName":"Contact IDs","name":"contactIds","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add ID"},"default":[],"description":"Unique contact identifiers"},{"displayName":"Custom Data","name":"customData","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"customProperty","values":[{"displayName":"Name","name":"name","type":"string","required":true,"default":"","description":"Property name"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Property value"}]}]}]}],"codex":{"categories":["Marketing & Content","Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.agilecrm/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/agileCrm"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/AgileCrm/agilecrm.png"},
10
10
  {"displayName":"Airtable","name":"n8n-nodes-base.airtable","group":["input"],"description":"Read, update, write and delete data from Airtable","defaultVersion":2,"version":1,"defaults":{"name":"Airtable"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"airtableApi","required":true,"displayOptions":{"show":{"authentication":["airtableApi"]}}},{"name":"airtableTokenApi","required":true,"displayOptions":{"show":{"authentication":["airtableTokenApi"]}}},{"name":"airtableOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["airtableOAuth2Api"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"API Key","value":"airtableApi"},{"name":"Access Token","value":"airtableTokenApi"},{"name":"OAuth2","value":"airtableOAuth2Api"}],"default":"airtableApi"},{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Append","value":"append","description":"Append the data to a table","action":"Append data to a table"},{"name":"Delete","value":"delete","description":"Delete data from a table","action":"Delete data from a table"},{"name":"List","value":"list","description":"List data from a table","action":"List data from a table"},{"name":"Read","value":"read","description":"Read data from a table","action":"Read data from a table"},{"name":"Update","value":"update","description":"Update data in a table","action":"Update data in a table"}],"default":"read"},{"displayName":"Base","name":"application","type":"resourceLocator","default":{"mode":"url","value":""},"required":true,"description":"The Airtable Base in which to operate on","modes":[{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Base URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Base ID"}}],"placeholder":"appD3dfaeidke","url":"=https://airtable.com/{{$value}}"}]},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"url","value":""},"required":true,"modes":[{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Table URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Table ID"}}],"placeholder":"tbl3dirwqeidke"}]},{"displayName":"Add All Fields","name":"addAllFields","type":"boolean","displayOptions":{"show":{"operation":["append"]}},"default":true,"description":"Whether all fields should be sent to Airtable or only specific ones"},{"displayName":"Fields","name":"fields","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Field"},"requiresDataPath":"single","displayOptions":{"show":{"addAllFields":[false],"operation":["append"]}},"default":[],"placeholder":"Name","required":true,"description":"The name of fields for which data should be sent to Airtable"},{"displayName":"ID","name":"id","type":"string","displayOptions":{"show":{"operation":["delete"]}},"default":"","required":true,"description":"ID of the record to delete"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["list"]}},"default":true,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["list"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":100,"description":"Max number of results to return"},{"displayName":"Download Attachments","name":"downloadAttachments","type":"boolean","displayOptions":{"show":{"operation":["list"]}},"default":false,"description":"Whether the attachment fields define in 'Download Fields' will be downloaded"},{"displayName":"Download Fields","name":"downloadFieldNames","type":"string","required":true,"requiresDataPath":"multiple","displayOptions":{"show":{"operation":["list"],"downloadAttachments":[true]}},"default":"","description":"Name of the fields of type 'attachment' that should be downloaded. Multiple ones can be defined separated by comma. Case sensitive and cannot include spaces after a comma."},{"displayName":"Additional Options","name":"additionalOptions","type":"collection","displayOptions":{"show":{"operation":["list"]}},"default":{},"description":"Additional options which decide which records should be returned","placeholder":"Add Option","options":[{"displayName":"Fields","name":"fields","type":"string","requiresDataPath":"single","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Field"},"default":[],"placeholder":"Name","description":"Only data for fields whose names are in this list will be included in the records"},{"displayName":"Filter By Formula","name":"filterByFormula","type":"string","default":"","placeholder":"NOT({Name} = '')","description":"A formula used to filter records. The formula will be evaluated for each record, and if the result is not 0, false, \"\", NaN, [], or #Error! the record will be included in the response."},{"displayName":"Sort","name":"sort","placeholder":"Add Sort Rule","description":"Defines how the returned records should be ordered","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"options":[{"name":"property","displayName":"Property","values":[{"displayName":"Field","name":"field","type":"string","default":"","description":"Name of the field to sort on"},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"asc","description":"Sort in ascending order (small -> large)"},{"name":"DESC","value":"desc","description":"Sort in descending order (large -> small)"}],"default":"asc","description":"The sort direction"}]}]},{"displayName":"View","name":"view","type":"string","default":"","placeholder":"All Stories","description":"The name or ID of a view in the Stories table. If set, only the records in that view will be returned. The records will be sorted according to the order of the view."}]},{"displayName":"ID","name":"id","type":"string","displayOptions":{"show":{"operation":["read"]}},"default":"","required":true,"description":"ID of the record to return"},{"displayName":"ID","name":"id","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"","required":true,"description":"ID of the record to update"},{"displayName":"Update All Fields","name":"updateAllFields","type":"boolean","displayOptions":{"show":{"operation":["update"]}},"default":true,"description":"Whether all fields should be sent to Airtable or only specific ones"},{"displayName":"Fields","name":"fields","type":"string","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Field"},"requiresDataPath":"single","displayOptions":{"show":{"updateAllFields":[false],"operation":["update"]}},"default":[],"placeholder":"Name","required":true,"description":"The name of fields for which data should be sent to Airtable"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","displayOptions":{"show":{"operation":["append","delete","update"]}},"default":{},"options":[{"displayName":"Bulk Size","name":"bulkSize","type":"number","typeOptions":{"minValue":1,"maxValue":10},"default":10,"description":"Number of records to process at once"},{"displayName":"Ignore Fields","name":"ignoreFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"/operation":["update"],"/updateAllFields":[true]}},"default":"","description":"Comma-separated list of fields to ignore"},{"displayName":"Typecast","name":"typecast","type":"boolean","displayOptions":{"show":{"/operation":["append","update"]}},"default":false,"description":"Whether the Airtable API should attempt mapping of string values for linked records & select options"}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Airtable/airtable.svg"},
11
11
  {"displayName":"Airtable","name":"n8n-nodes-base.airtable","group":["input"],"description":"Read, update, write and delete data from Airtable","defaultVersion":2,"version":2,"subtitle":"={{ $parameter[\"operation\"] + \": \" + $parameter[\"resource\"] }}","defaults":{"name":"Airtable"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"airtableTokenApi","required":true,"displayOptions":{"show":{"authentication":["airtableTokenApi"]}}},{"name":"airtableOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["airtableOAuth2Api"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"Access Token","value":"airtableTokenApi"},{"name":"OAuth2","value":"airtableOAuth2Api"}],"default":"airtableTokenApi"},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Base","value":"base"},{"name":"Record","value":"record"}],"default":"record"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Create","value":"create","description":"Create a new record in a table","action":"Create a record"},{"name":"Create or Update","value":"upsert","description":"Create a new record, or update the current one if it already exists (upsert)","action":"Create or update a record"},{"name":"Delete","value":"deleteRecord","description":"Delete a record from a table","action":"Delete a record"},{"name":"Get","value":"get","description":"Retrieve a record from a table","action":"Get a record"},{"name":"Search","value":"search","description":"Search for specific records or list all","action":"Search records"},{"name":"Update","value":"update","description":"Update a record in a table","action":"Update record"}],"default":"read","displayOptions":{"show":{"resource":["record"]}}},{"displayName":"Base","name":"base","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"baseSearch","searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"e.g. https://airtable.com/app12DiScdfes/tbl9WvGeEPa6lZyVq/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Base URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Base ID"}}],"placeholder":"e.g. appD3dfaeidke","url":"=https://airtable.com/{{$value}}"}],"displayOptions":{"show":{"resource":["record"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch","searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Table URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Table ID"}}],"placeholder":"tbl3dirwqeidke"}],"displayOptions":{"show":{"resource":["record"]}}},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","base.value"],"resourceMapper":{"resourceMapperMethod":"getColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"resource":["record"],"operation":["create"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Typecast","name":"typecast","type":"boolean","default":false,"description":"Whether the Airtable API should attempt mapping of string values for linked records & select options"},{"displayName":"Ignore Fields From Input","name":"ignoreFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"/columns.mappingMode":["autoMapInputData"]}},"default":"","description":"Comma-separated list of fields in input to ignore when updating"},{"displayName":"Update All Matches","name":"updateAllMatches","type":"boolean","default":false,"description":"Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.","displayOptions":{"show":{"/operation":["update","upsert"]}}}],"displayOptions":{"show":{"resource":["record"],"operation":["create"]}}},{"displayName":"Record ID","name":"id","type":"string","default":"","placeholder":"e.g. recf7EaZp707CEc8g","required":true,"description":"ID of the record to delete. <a href=\"https://support.airtable.com/docs/record-id\" target=\"_blank\">More info</a>.","displayOptions":{"show":{"resource":["record"],"operation":["deleteRecord"]}}},{"displayName":"Record ID","name":"id","type":"string","default":"","placeholder":"e.g. recf7EaZp707CEc8g","required":true,"description":"ID of the record to get. <a href=\"https://support.airtable.com/docs/record-id\" target=\"_blank\">More info</a>.","displayOptions":{"show":{"resource":["record"],"operation":["get"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"description":"Additional options which decide which records should be returned","placeholder":"Add Option","options":[{"displayName":"Download Attachments","name":"downloadFields","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getAttachmentColumns","loadOptionsDependsOn":["base.value","table.value"]},"default":[],"description":"The fields of type 'attachment' that should be downloaded"}],"displayOptions":{"show":{"resource":["record"],"operation":["get"]}}},{"displayName":"Filter By Formula","name":"filterByFormula","type":"string","default":"","placeholder":"e.g. NOT({Name} = 'Admin')","hint":"If empty, all the records will be returned","description":"The formula will be evaluated for each record, and if the result is not 0, false, \"\", NaN, [], or #Error! the record will be included in the response. <a href=\"https://support.airtable.com/docs/formula-field-reference\" target=\"_blank\">More info</a>.","displayOptions":{"show":{"resource":["record"],"operation":["search"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":true,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["record"],"operation":["search"]}}},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"returnAll":[false],"resource":["record"],"operation":["search"]}},"typeOptions":{"minValue":1,"maxValue":100},"default":100,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","default":{},"description":"Additional options which decide which records should be returned","placeholder":"Add Option","options":[{"displayName":"Download Attachments","name":"downloadFields","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getAttachmentColumns","loadOptionsDependsOn":["base.value","table.value"]},"default":[],"description":"The fields of type 'attachment' that should be downloaded"},{"displayName":"Output Fields","name":"fields","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["base.value","table.value"]},"default":[],"description":"The fields you want to include in the output"},{"displayName":"View","name":"view","type":"resourceLocator","default":{"mode":"list","value":""},"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"viewSearch","searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/[a-zA-Z0-9]{2,}/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable View URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/[a-zA-Z0-9]{2,}/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable View ID"}}],"placeholder":"viw3dirwqeidke"}]}],"displayOptions":{"show":{"resource":["record"],"operation":["search"]}}},{"displayName":"Sort","name":"sort","placeholder":"Add Sort Rule","description":"Defines how the returned records should be ordered","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"options":[{"name":"property","displayName":"Property","values":[{"displayName":"Field","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["base.value","table.value"]},"default":"","description":"Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"asc","description":"Sort in ascending order (small -> large)"},{"name":"DESC","value":"desc","description":"Sort in descending order (large -> small)"}],"default":"asc","description":"The sort direction"}]}],"displayOptions":{"show":{"resource":["record"],"operation":["search"]}}},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","base.value"],"resourceMapper":{"resourceMapperMethod":"getColumnsWithRecordId","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"resource":["record"],"operation":["update"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Typecast","name":"typecast","type":"boolean","default":false,"description":"Whether the Airtable API should attempt mapping of string values for linked records & select options"},{"displayName":"Ignore Fields From Input","name":"ignoreFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"/columns.mappingMode":["autoMapInputData"]}},"default":"","description":"Comma-separated list of fields in input to ignore when updating"},{"displayName":"Update All Matches","name":"updateAllMatches","type":"boolean","default":false,"description":"Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.","displayOptions":{"show":{"/operation":["update","upsert"]}}}],"displayOptions":{"show":{"resource":["record"],"operation":["update"]}}},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","base.value"],"resourceMapper":{"resourceMapperMethod":"getColumnsWithRecordId","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"resource":["record"],"operation":["upsert"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Typecast","name":"typecast","type":"boolean","default":false,"description":"Whether the Airtable API should attempt mapping of string values for linked records & select options"},{"displayName":"Ignore Fields From Input","name":"ignoreFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"/columns.mappingMode":["autoMapInputData"]}},"default":"","description":"Comma-separated list of fields in input to ignore when updating"},{"displayName":"Update All Matches","name":"updateAllMatches","type":"boolean","default":false,"description":"Whether to update all records matching the value in the \"Column to Match On\". If not set, only the first matching record will be updated.","displayOptions":{"show":{"/operation":["update","upsert"]}}}],"displayOptions":{"show":{"resource":["record"],"operation":["upsert"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Get Many","value":"getMany","description":"List all the bases","action":"Get many bases"},{"name":"Get Schema","value":"getSchema","description":"Get the schema of the tables in a base","action":"Get base schema"}],"default":"getMany","displayOptions":{"show":{"resource":["base"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":true,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["base"],"operation":["getMany"]}}},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"returnAll":[false],"resource":["base"],"operation":["getMany"]}},"typeOptions":{"minValue":1,"maxValue":100},"default":100,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Permission Level","name":"permissionLevel","type":"multiOptions","options":[{"name":"Comment","value":"comment"},{"name":"Create","value":"create"},{"name":"Edit","value":"edit"},{"name":"None","value":"none"},{"name":"Read","value":"read"}],"default":[],"description":"Filter the returned bases by one or more permission levels"}],"displayOptions":{"show":{"resource":["base"],"operation":["getMany"]}}},{"displayName":"Base","name":"base","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"baseSearch","searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"e.g. https://airtable.com/app12DiScdfes/tbl9WvGeEPa6lZyVq/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Base URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Base ID"}}],"placeholder":"e.g. appD3dfaeidke","url":"=https://airtable.com/{{$value}}"}],"description":"The Airtable Base to retrieve the schema from","displayOptions":{"show":{"resource":["base"],"operation":["getSchema"]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Airtable/airtable.svg","codex":{"categories":["Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.airtable/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/airtable"}]}}},
12
12
  {"displayName":"Airtable Trigger","name":"n8n-nodes-base.airtableTrigger","group":["trigger"],"version":1,"description":"Starts the workflow when Airtable events occur","subtitle":"={{$parameter[\"event\"]}}","defaults":{"name":"Airtable Trigger"},"credentials":[{"name":"airtableApi","required":true,"displayOptions":{"show":{"authentication":["airtableApi"]}}},{"name":"airtableTokenApi","required":true,"displayOptions":{"show":{"authentication":["airtableTokenApi"]}}},{"name":"airtableOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["airtableOAuth2Api"]}}}],"polling":true,"inputs":[],"outputs":["main"],"properties":[{"displayName":"Poll Times","name":"pollTimes","type":"fixedCollection","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Poll Time"},"default":{"item":[{"mode":"everyMinute"}]},"description":"Time at which polling should occur","placeholder":"Add Poll Time","options":[{"name":"item","displayName":"Item","values":[{"displayName":"Mode","name":"mode","type":"options","options":[{"name":"Every Minute","value":"everyMinute"},{"name":"Every Hour","value":"everyHour"},{"name":"Every Day","value":"everyDay"},{"name":"Every Week","value":"everyWeek"},{"name":"Every Month","value":"everyMonth"},{"name":"Every X","value":"everyX"},{"name":"Custom","value":"custom"}],"default":"everyDay","description":"How often to trigger."},{"displayName":"Hour","name":"hour","type":"number","typeOptions":{"minValue":0,"maxValue":23},"displayOptions":{"hide":{"mode":["custom","everyHour","everyMinute","everyX"]}},"default":14,"description":"The hour of the day to trigger (24h format)"},{"displayName":"Minute","name":"minute","type":"number","typeOptions":{"minValue":0,"maxValue":59},"displayOptions":{"hide":{"mode":["custom","everyMinute","everyX"]}},"default":0,"description":"The minute of the day to trigger"},{"displayName":"Day of Month","name":"dayOfMonth","type":"number","displayOptions":{"show":{"mode":["everyMonth"]}},"typeOptions":{"minValue":1,"maxValue":31},"default":1,"description":"The day of the month to trigger"},{"displayName":"Weekday","name":"weekday","type":"options","displayOptions":{"show":{"mode":["everyWeek"]}},"options":[{"name":"Monday","value":"1"},{"name":"Tuesday","value":"2"},{"name":"Wednesday","value":"3"},{"name":"Thursday","value":"4"},{"name":"Friday","value":"5"},{"name":"Saturday","value":"6"},{"name":"Sunday","value":"0"}],"default":"1","description":"The weekday to trigger"},{"displayName":"Cron Expression","name":"cronExpression","type":"string","displayOptions":{"show":{"mode":["custom"]}},"default":"* * * * * *","description":"Use custom cron expression. Values and ranges as follows:<ul><li>Seconds: 0-59</li><li>Minutes: 0 - 59</li><li>Hours: 0 - 23</li><li>Day of Month: 1 - 31</li><li>Months: 0 - 11 (Jan - Dec)</li><li>Day of Week: 0 - 6 (Sun - Sat)</li></ul>"},{"displayName":"Value","name":"value","type":"number","typeOptions":{"minValue":0,"maxValue":1000},"displayOptions":{"show":{"mode":["everyX"]}},"default":2,"description":"All how many X minutes/hours it should trigger"},{"displayName":"Unit","name":"unit","type":"options","displayOptions":{"show":{"mode":["everyX"]}},"options":[{"name":"Minutes","value":"minutes"},{"name":"Hours","value":"hours"}],"default":"hours","description":"If it should trigger all X minutes or hours"}]}]},{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"API Key","value":"airtableApi"},{"name":"Access Token","value":"airtableTokenApi"},{"name":"OAuth2","value":"airtableOAuth2Api"}],"default":"airtableApi"},{"displayName":"Base","name":"baseId","type":"resourceLocator","default":{"mode":"url","value":""},"required":true,"description":"The Airtable Base in which to operate on","modes":[{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Base URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Base ID"}}],"placeholder":"appD3dfaeidke","url":"=https://airtable.com/{{$value}}"}]},{"displayName":"Table","name":"tableId","type":"resourceLocator","default":{"mode":"url","value":""},"required":true,"modes":[{"displayName":"By URL","name":"url","type":"string","placeholder":"https://airtable.com/app12DiScdfes/tblAAAAAAAAAAAAA/viwHdfasdfeieg5p","validation":[{"type":"regex","properties":{"regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})/.*","errorMessage":"Not a valid Airtable Table URL"}}],"extractValue":{"type":"regex","regex":"https://airtable.com/[a-zA-Z0-9]{2,}/([a-zA-Z0-9]{2,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9]{2,}","errorMessage":"Not a valid Airtable Table ID"}}],"placeholder":"tbl3dirwqeidke"}]},{"displayName":"Trigger Field","name":"triggerField","type":"string","default":"","description":"A Created Time or Last Modified Time field that will be used to sort records. If you do not have a Created Time or Last Modified Time field in your schema, please create one, because without this field trigger will not work correctly.","required":true},{"displayName":"Download Attachments","name":"downloadAttachments","type":"boolean","default":false,"description":"Whether the attachment fields define in 'Download Fields' will be downloaded"},{"displayName":"Download Fields","name":"downloadFieldNames","type":"string","required":true,"displayOptions":{"show":{"downloadAttachments":[true]}},"default":"","description":"Name of the fields of type 'attachment' that should be downloaded. Multiple ones can be defined separated by comma. Case sensitive."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"options":[{"displayName":"Fields","name":"fields","type":"string","requiresDataPath":"multiple","default":"","description":"Fields to be included in the response. Multiple ones can be set separated by comma. Example: <code>name, id</code>. By default just the trigger field will be included."},{"displayName":"Formula","name":"formula","type":"string","default":"","description":"Formulas may involve functions, numeric operations, logical operations, and text operations that operate on fields. More info <a href=\"https://support.airtable.com/hc/en-us/articles/203255215-Formula-Field-Reference\">here</a>."},{"displayName":"View ID","name":"viewId","type":"string","default":"","description":"The name or ID of a view in the table. If set, only the records in that view will be returned."}]}],"codex":{"categories":["Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.airtabletrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/airtable"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Airtable/airtable.svg"},
@@ -130,7 +130,7 @@
130
130
  {"displayName":"GitLab Trigger","name":"n8n-nodes-base.gitlabTrigger","group":["trigger"],"version":1,"subtitle":"={{$parameter[\"owner\"] + \"/\" + $parameter[\"repository\"] + \": \" + $parameter[\"events\"].join(\", \")}}","description":"Starts the workflow when GitLab events occur","defaults":{"name":"GitLab Trigger"},"inputs":[],"outputs":["main"],"credentials":[{"name":"gitlabApi","required":true,"displayOptions":{"show":{"authentication":["accessToken"]}}},{"name":"gitlabOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}}],"webhooks":[{"name":"default","httpMethod":"POST","responseMode":"onReceived","path":"webhook"}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"Access Token","value":"accessToken"},{"name":"OAuth2","value":"oAuth2"}],"default":"accessToken"},{"displayName":"Repository Owner","name":"owner","type":"string","default":"","required":true,"placeholder":"n8n-io","description":"Owner of the repsitory"},{"displayName":"Repository Name","name":"repository","type":"string","default":"","required":true,"placeholder":"n8n","description":"The name of the repsitory"},{"displayName":"Events","name":"events","type":"multiOptions","options":[{"name":"Comment","value":"note","description":"Triggered when a new comment is made on commits, merge requests, issues, and code snippets"},{"name":"Confidential Issues","value":"confidential_issues","description":"Triggered on confidential issues' events"},{"name":"Confidential Comments","value":"confidential_note","description":"Triggered when a confidential comment is made"},{"name":"Deployments","value":"deployment","description":"Triggered when a deployment starts/succeeds/fails/is cancelled"},{"name":"Issue","value":"issues","description":"Triggered when a new issue is created or an existing issue was updated/closed/reopened"},{"name":"Job","value":"job","description":"Triggered on status change of a job"},{"name":"Merge Request","value":"merge_requests","description":"Triggered when a new merge request is created, an existing merge request was updated/merged/closed or a commit is added in the source branch"},{"name":"Pipeline","value":"pipeline","description":"Triggered on status change of Pipeline"},{"name":"Push","value":"push","description":"Triggered when you push to the repository except when pushing tags"},{"name":"Release","value":"releases","description":"Release events are triggered when a release is created or updated"},{"name":"Tag","value":"tag_push","description":"Triggered when you create (or delete) tags to the repository"},{"name":"Wiki Page","value":"wiki_page","description":"Triggered when a wiki page is created, updated or deleted"},{"name":"*","value":"*","description":"Any time any event is triggered (Wildcard Event)"}],"required":true,"default":[],"description":"The events to listen to"}],"codex":{"categories":["Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.gitlabtrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/gitlab"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Gitlab/gitlab.svg"},
131
131
  {"displayName":"Google Ads","name":"n8n-nodes-base.googleAds","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Use the Google Ads API","defaults":{"name":"Google Ads"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleAdsOAuth2Api","required":true,"testedBy":{"request":{"method":"GET","url":"/v13/customers:listAccessibleCustomers"}}}],"requestDefaults":{"returnFullResponse":true,"baseURL":"https://googleads.googleapis.com","headers":{"developer-token":"={{$credentials.developerToken}}"}},"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Campaign","value":"campaign"}],"default":"campaign"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["campaign"]}},"options":[{"name":"Get Many","value":"getAll","description":"Get many campaigns linked to the specified account","routing":{"request":{"method":"POST","url":"={{\"/v13/customers/\" + $parameter[\"clientCustomerId\"].toString().replace(/-/g, \"\") + \"/googleAds:search\"}}","body":{"query":"={{ \"select campaign.id, campaign.name, campaign_budget.amount_micros, campaign_budget.period,campaign.status,campaign.optimization_score,campaign.advertising_channel_type,campaign.advertising_channel_sub_type,metrics.impressions,metrics.interactions,metrics.interaction_rate,metrics.average_cost,metrics.cost_micros,metrics.conversions,metrics.cost_per_conversion,metrics.conversions_from_interactions_rate,metrics.video_views,metrics.average_cpm,metrics.ctr from campaign where campaign.id > 0 \" + ([\"allTime\", undefined, \"\"].includes($parameter.additionalOptions?.dateRange) ? \"\" : \" and segments.date DURING \" + $parameter.additionalOptions.dateRange) + \" \" + ([\"all\", undefined, \"\"].includes($parameter.additionalOptions?.campaignStatus) ? \"\" : \" and campaign.status = '\" + $parameter.additionalOptions.campaignStatus + \"'\") + \"\" }}"},"headers":{"login-customer-id":"={{$parameter[\"managerCustomerId\"].toString().replace(/-/g, \"\")}}"}},"output":{"postReceive":[null]}},"action":"Get many campaigns"},{"name":"Get","value":"get","description":"Get a specific campaign","routing":{"request":{"method":"POST","url":"={{\"/v13/customers/\" + $parameter[\"clientCustomerId\"].toString().replace(/-/g, \"\") + \"/googleAds:search\"}}","returnFullResponse":true,"body":{"query":"={{ \"select campaign.id, campaign.name, campaign_budget.amount_micros, campaign_budget.period,campaign.status,campaign.optimization_score,campaign.advertising_channel_type,campaign.advertising_channel_sub_type,metrics.impressions,metrics.interactions,metrics.interaction_rate,metrics.average_cost,metrics.cost_micros,metrics.conversions,metrics.cost_per_conversion,metrics.conversions_from_interactions_rate,metrics.video_views,metrics.average_cpm,metrics.ctr from campaign where campaign.id = \" + $parameter[\"campaignId\"].toString().replace(/-/g, \"\")}}"},"headers":{"login-customer-id":"={{$parameter[\"managerCustomerId\"].toString().replace(/-/g, \"\")}}"}},"output":{"postReceive":[null]}},"action":"Get a campaign"}],"default":"getAll"},{"displayName":"Divide field names expressed with <i>micros</i> by 1,000,000 to get the actual value","name":"campaigsNotice","type":"notice","default":"","displayOptions":{"show":{"resource":["campaign"]}}},{"displayName":"Manager Customer ID","name":"managerCustomerId","type":"string","required":true,"placeholder":"9998887777","displayOptions":{"show":{"resource":["campaign"]}},"default":""},{"displayName":"Client Customer ID","name":"clientCustomerId","type":"string","required":true,"placeholder":"6665554444","displayOptions":{"show":{"resource":["campaign"]}},"default":""},{"displayName":"Campaign ID","name":"campaignId","type":"string","required":true,"displayOptions":{"show":{"operation":["get"],"resource":["campaign"]}},"default":"","description":"ID of the campaign"},{"displayName":"Additional Options","name":"additionalOptions","type":"collection","displayOptions":{"show":{"resource":["campaign"],"operation":["getAll"]}},"default":{},"description":"Additional options for fetching campaigns","placeholder":"Add Option","options":[{"displayName":"Date Range","name":"dateRange","description":"Filters statistics by period","type":"options","options":[{"name":"All Time","value":"allTime","description":"Fetch statistics for all period"},{"name":"Today","value":"TODAY","description":"Today only"},{"name":"Yesterday","value":"YESTERDAY","description":"Yesterday only"},{"name":"Last 7 Days","value":"LAST_7_DAYS","description":"Last 7 days, not including today"},{"name":"Last Business Week","value":"LAST_BUSINESS_WEEK","description":"The 5 day business week, Monday through Friday, of the previous business week"},{"name":"This Month","value":"THIS_MONTH","description":"All days in the current month"},{"name":"Last Month","value":"LAST_MONTH","description":"All days in the previous month"},{"name":"Last 14 Days","value":"LAST_14_DAYS","description":"The last 14 days not including today"},{"name":"Last 30 Days","value":"LAST_30_DAYS","description":"The last 30 days not including today"}],"default":"allTime"},{"displayName":"Show Campaigns by Status","name":"campaignStatus","description":"Filters campaigns by status","type":"options","options":[{"name":"All","value":"all","description":"Fetch all campaigns regardless of status"},{"name":"Enabled","value":"ENABLED","description":"Filter only active campaigns"},{"name":"Paused","value":"PAUSED","description":"Filter only paused campaigns"},{"name":"Removed","value":"REMOVED","description":"Filter only removed campaigns"}],"default":"all"}]}],"codex":{"categories":["Analytics"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googleads/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/Ads/googleAds.svg"},
132
132
  {"displayName":"Google Analytics","name":"n8n-nodes-base.googleAnalytics","group":["transform"],"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Use the Google Analytics API","defaultVersion":2,"version":1,"defaults":{"name":"Google Analytics"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleAnalyticsOAuth2","required":true}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Report","value":"report"},{"name":"User Activity","value":"userActivity"}],"default":"report"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["report"]}},"options":[{"name":"Get","value":"get","description":"Return the analytics data","action":"Get a report"}],"default":"get"},{"displayName":"View Name or ID","name":"viewId","type":"options","typeOptions":{"loadOptionsMethod":"getViews"},"default":"","required":true,"displayOptions":{"show":{"resource":["report"],"operation":["get"]}},"placeholder":"123456","description":"The View ID of Google Analytics. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["get"],"resource":["report"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":1000},"default":1000,"description":"Max number of results to return"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["report"],"operation":["get"]}},"options":[{"displayName":"Date Ranges","name":"dateRangesUi","placeholder":"Add Date Range","type":"fixedCollection","default":{},"description":"Date ranges in the request","options":[{"displayName":"Date Range","name":"dateRanges","values":[{"displayName":"Start Date","name":"startDate","type":"dateTime","default":""},{"displayName":"End Date","name":"endDate","type":"dateTime","default":""}]}]},{"displayName":"Dimensions","name":"dimensionUi","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension","description":"Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, \"Paris\" or \"New York\", from which a session originates.","options":[{"displayName":"Dimension","name":"dimensionValues","values":[{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions"},"default":"","description":"Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]}]},{"displayName":"Dimension Filters","name":"dimensionFiltersUi","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension Filter","description":"Dimension Filters in the request","options":[{"displayName":"Filters","name":"filterValues","values":[{"displayName":"Dimension Name or ID","name":"dimensionName","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions"},"default":"","description":"Name of the dimension to filter by. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operator","name":"operator","type":"options","default":"EXACT","description":"Operator to use in combination with value","options":[{"name":"Begins With","value":"BEGINS_WITH"},{"name":"Ends With","value":"ENDS_WITH"},{"name":"Equal (Number)","value":"NUMERIC_EQUAL"},{"name":"Exact","value":"EXACT"},{"name":"Greater Than (Number)","value":"NUMERIC_GREATER_THAN"},{"name":"Less Than (Number)","value":"NUMERIC_LESS_THAN"},{"name":"Partial","value":"PARTIAL"},{"name":"Regular Expression","value":"REGEXP"}]},{"displayName":"Value","name":"expressions","type":"string","default":"","placeholder":"ga:newUsers","description":"String or <a href=\"https://support.google.com/analytics/answer/1034324?hl=en\">regular expression</a> to match against"}]}]},{"displayName":"Hide Totals","name":"hideTotals","type":"boolean","default":false,"description":"Whether to hide the total of all metrics for all the matching rows, for every date range"},{"displayName":"Hide Value Ranges","name":"hideValueRanges","type":"boolean","default":false,"description":"Whether to hide the minimum and maximum across all matching rows"},{"displayName":"Include Empty Rows","name":"includeEmptyRows","type":"boolean","default":false,"description":"Whether the response exclude rows if all the retrieved metrics are equal to zero"},{"displayName":"Metrics","name":"metricsUi","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Metrics","description":"Metrics in the request","options":[{"displayName":"Metric","name":"metricValues","values":[{"displayName":"Alias","name":"alias","type":"string","default":"","description":"An alias for the metric expression is an alternate name for the expression. The alias can be used for filtering and sorting."},{"displayName":"Expression","name":"expression","type":"string","default":"ga:newUsers","description":"<p>A metric expression in the request. An expression is constructed from one or more metrics and numbers.</p><p>Accepted operators include: Plus (+), Minus (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, Positive cardinal numbers (0-9), can include decimals and is limited to 1024 characters.</p><p>Example ga:totalRefunds/ga:users, in most cases the metric expression is just a single metric name like ga:users.</p><p>Adding mixed MetricType (E.g., CURRENCY + PERCENTAGE) metrics will result in unexpected results.</p>."},{"displayName":"Formatting Type","name":"formattingType","type":"options","default":"INTEGER","description":"Specifies how the metric expression should be formatted","options":[{"name":"Currency","value":"CURRENCY"},{"name":"Float","value":"FLOAT"},{"name":"Integer","value":"INTEGER"},{"name":"Percent","value":"PERCENT"},{"name":"Time","value":"TIME"}]}]}]},{"displayName":"Use Resource Quotas","name":"useResourceQuotas","type":"boolean","default":false,"description":"Whether to enable resource based quotas"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["userActivity"]}},"options":[{"name":"Search","value":"search","description":"Return user activity data","action":"Search user activity data"}],"default":"search"},{"displayName":"View Name or ID","name":"viewId","type":"options","typeOptions":{"loadOptionsMethod":"getViews"},"default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"The View ID of Google Analytics. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"User ID","name":"userId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"ID of a user"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"options":[{"displayName":"Activity Types","name":"activityTypes","type":"multiOptions","options":[{"name":"Ecommerce","value":"ECOMMERCE"},{"name":"Event","value":"EVENT"},{"name":"Goal","value":"GOAL"},{"name":"Pageview","value":"PAGEVIEW"},{"name":"Screenview","value":"SCREENVIEW"}],"description":"Type of activites requested","default":[]}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/Analytics/analytics.svg"},
133
- {"displayName":"Google Analytics","name":"n8n-nodes-base.googleAnalytics","group":["transform"],"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Use the Google Analytics API","defaultVersion":2,"version":2,"defaults":{"name":"Google Analytics"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleAnalyticsOAuth2","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Report","value":"report"},{"name":"User Activity","value":"userActivity"}],"default":"report"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["report"]}},"options":[{"name":"Get","value":"get","description":"Return the analytics data","action":"Get a report"}],"default":"get"},{"displayName":"Property Type","name":"propertyType","type":"options","noDataExpression":true,"description":"Google Analytics 4 is the latest version. Universal Analytics is an older version that is not fully functional after the end of June 2023.","options":[{"name":"Google Analytics 4","value":"ga4"},{"name":"Universal Analytics","value":"universal"}],"default":"ga4","displayOptions":{"show":{"resource":["report"],"operation":["get"]}}},{"displayName":"Property","name":"propertyId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The Property of Google Analytics","hint":"If this doesn't work, try changing the 'Property Type' field above","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a property...","typeOptions":{"searchListMethod":"searchProperties","searchFilterRequired":false,"searchable":false}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://analytics.google.com/analytics/...","validation":[{"type":"regex","properties":{"regex":".*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)*","errorMessage":"Not a valid Google Analytics URL"}}],"extractValue":{"type":"regex","regex":".*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)"}},{"displayName":"By ID","name":"id","type":"string","placeholder":"123456","validation":[{"type":"regex","properties":{"regex":"[0-9]{1,}","errorMessage":"Not a valid Google Analytics Property ID"}}],"url":"=https://analytics.google.com/analytics/web/#/p{{$value}}/"}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Date Range","name":"dateRange","type":"options","required":true,"options":[{"name":"Last 7 Days","value":"last7days"},{"name":"Last 30 Days","value":"last30days"},{"name":"Today","value":"today"},{"name":"Yesterday","value":"yesterday"},{"name":"Last Complete Calendar Week","value":"lastCalendarWeek"},{"name":"Last Complete Calendar Month","value":"lastCalendarMonth"},{"name":"Custom","value":"custom"}],"default":"last7days","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Start","name":"startDate","type":"dateTime","required":true,"default":"2023-08-21T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"dateRange":["custom"],"propertyType":["ga4"]}}},{"displayName":"End","name":"endDate","type":"dateTime","required":true,"default":"2023-08-28T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"dateRange":["custom"],"propertyType":["ga4"]}}},{"displayName":"Metrics","name":"metricsGA4","type":"fixedCollection","default":{"metricValues":[{"listName":"totalUsers"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Metric","description":"The quantitative measurements of a report. For example, the metric eventCount is the total number of events. Requests are allowed up to 10 metrics.","options":[{"displayName":"Values","name":"metricValues","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Expression","name":"expression","type":"string","default":"","description":"A mathematical expression for derived metrics. For example, the metric Event count per user is eventCount/totalUsers.","placeholder":"e.g. eventCount/totalUsers","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Invisible","name":"invisible","type":"boolean","default":false,"displayOptions":{"show":{"listName":["custom"]}},"description":"Whether a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in metricFilter, orderBys, or a metric expression."}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Dimensions to split by","name":"dimensionsGA4","type":"fixedCollection","default":{"dimensionValues":[{"listName":"date"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension","description":"Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be \"Paris\" or \"New York\". Requests are allowed up to 9 dimensions.","options":[{"displayName":"Values","name":"dimensionValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":1000},"default":50,"description":"Max number of results to return"},{"displayName":"Simplify Output","name":"simple","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}},"options":[{"displayName":"Currency Code","name":"currencyCode","type":"string","default":"","description":"A currency code in ISO4217 format, such as \"AED\", \"USD\", \"JPY\". If the field is empty, the report uses the property's default currency."},{"displayName":"Dimensions Filters","name":"dimensionFiltersUI","type":"fixedCollection","default":{},"placeholder":"Add Filter","options":[{"displayName":"Filter Expressions","name":"filterExpressions","values":[{"displayName":"Filter Expression Type","name":"filterExpressionType","type":"options","default":"andGroup","options":[{"name":"And Group","value":"andGroup"},{"name":"Or Group","value":"orGroup"}]},{"displayName":"Expression","name":"expression","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"placeholder":"Add Expression","options":[{"displayName":"String Filter","name":"stringFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Case Sensitive","name":"caseSensitive","type":"boolean","default":true},{"displayName":"Match Type","name":"matchType","type":"options","default":"EXACT","options":[{"name":"Begins With","value":"BEGINS_WITH"},{"name":"Contains Value","value":"CONTAINS"},{"name":"Ends With","value":"ENDS_WITH"},{"name":"Exact Match","value":"EXACT"},{"name":"Full Match for the Regular Expression","value":"FULL_REGEXP"},{"name":"Partial Match for the Regular Expression","value":"PARTIAL_REGEXP"}]}]},{"displayName":"In List Filter","name":"inListFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Values","name":"values","type":"string","default":"","hint":"Comma separated list of values. Must be non-empty."},{"displayName":"Case Sensitive","name":"caseSensitive","type":"boolean","default":true}]},{"displayName":"Numeric Filter","name":"numericFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"EQUAL","options":[{"name":"Equal","value":"EQUAL"},{"name":"Greater Than","value":"GREATER_THAN"},{"name":"Greater than or Equal","value":"GREATER_THAN_OR_EQUAL"},{"name":"Less Than","value":"LESS_THAN"},{"name":"Less than or Equal","value":"LESS_THAN_OR_EQUAL"}]}]}]}]}]},{"displayName":"Metric Aggregation","name":"metricAggregations","type":"multiOptions","default":[],"options":[{"name":"MAXIMUM","value":"MAXIMUM"},{"name":"MINIMUM","value":"MINIMUM"},{"name":"TOTAL","value":"TOTAL"}],"displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Metrics Filters","name":"metricsFiltersUI","type":"fixedCollection","default":{},"placeholder":"Add Filter","options":[{"displayName":"Filter Expressions","name":"filterExpressions","values":[{"displayName":"Filter Expression Type","name":"filterExpressionType","type":"options","default":"andGroup","options":[{"name":"And Group","value":"andGroup"},{"name":"Or Group","value":"orGroup"}]},{"displayName":"Expression","name":"expression","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"placeholder":"Add Expression","options":[{"displayName":"Between Filter","name":"betweenFilter","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"From Value","name":"fromValue","type":"string","default":""},{"displayName":"To Value","name":"toValue","type":"string","default":""}]},{"displayName":"Numeric Filter","name":"numericFilter","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"EQUAL","options":[{"name":"Equal","value":"EQUAL"},{"name":"Greater Than","value":"GREATER_THAN"},{"name":"Greater than or Equal","value":"GREATER_THAN_OR_EQUAL"},{"name":"Less Than","value":"LESS_THAN"},{"name":"Less than or Equal","value":"LESS_THAN_OR_EQUAL"}]}]}]}]}]},{"displayName":"Keep Empty Rows","name":"keepEmptyRows","type":"boolean","default":false,"description":"Whether false or unspecified, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter."},{"displayName":"Order By","name":"orderByUI","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Order","description":"Specifies how rows are ordered in the response","options":[{"displayName":"Metric Order By","name":"metricOrderBy","values":[{"displayName":"Descending","name":"desc","type":"boolean","default":false,"description":"Whether true, sorts by descending order"},{"displayName":"Metric Name or ID","name":"metricName","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"","description":"Sorts by metric values. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Dimmension Order By","name":"dimmensionOrderBy","values":[{"displayName":"Descending","name":"desc","type":"boolean","default":false,"description":"Whether true, sorts by descending order"},{"displayName":"Dimmension Name or ID","name":"dimensionName","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"","description":"Sorts by metric values. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Order Type","name":"orderType","type":"options","default":"ORDER_TYPE_UNSPECIFIED","options":[{"name":"Alphanumeric","value":"ALPHANUMERIC","description":"Alphanumeric sort by Unicode code point"},{"name":"Case Insensitive Alphanumeric","value":"CASE_INSENSITIVE_ALPHANUMERIC","description":"Case insensitive alphanumeric sort by lower case Unicode code point"},{"name":"Numeric","value":"NUMERIC","description":"Dimension values are converted to numbers before sorting"},{"name":"Unspecified","value":"ORDER_TYPE_UNSPECIFIED"}]}]}]},{"displayName":"Return Property Quota","name":"returnPropertyQuota","type":"boolean","default":false,"description":"Whether to return the current state of this Analytics Property's quota. Quota is returned in PropertyQuota.","displayOptions":{"show":{"/simple":[false]}}}]},{"displayName":"View","name":"viewId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The View of Google Analytics","hint":"If this doesn't work, try changing the 'Property Type' field above","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a view...","typeOptions":{"searchListMethod":"searchViews","searchFilterRequired":false,"searchable":false}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://analytics.google.com/analytics/...","validation":[{"type":"regex","properties":{"regex":".*analytics.google.com/analytics.*p[0-9]{1,}.*","errorMessage":"Not a valid Google Analytics URL"}}],"extractValue":{"type":"regex","regex":".*analytics.google.com/analytics.*p([0-9]{1,})"}},{"displayName":"By ID","name":"id","type":"string","placeholder":"123456","validation":[{"type":"regex","properties":{"regex":"[0-9]{1,}","errorMessage":"Not a valid Google Analytics View ID"}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Date Range","name":"dateRange","type":"options","required":true,"options":[{"name":"Last 7 Days","value":"last7days"},{"name":"Last 30 Days","value":"last30days"},{"name":"Today","value":"today"},{"name":"Yesterday","value":"yesterday"},{"name":"Last Complete Calendar Week","value":"lastCalendarWeek"},{"name":"Last Complete Calendar Month","value":"lastCalendarMonth"},{"name":"Custom","value":"custom"}],"default":"last7days","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Start","name":"startDate","type":"dateTime","required":true,"default":"2023-08-21T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"],"dateRange":["custom"]}}},{"displayName":"End","name":"endDate","type":"dateTime","required":true,"default":"2023-08-28T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"],"dateRange":["custom"]}}},{"displayName":"Metrics","name":"metricsUA","type":"fixedCollection","default":{"metricValues":[{"listName":"ga:users"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add metric","description":"Metrics in the request","options":[{"displayName":"Metric","name":"metricValues","values":[{"displayName":"Metric","name":"listName","type":"options","default":"ga:users","options":[{"name":"Checkouts","value":"ga:productCheckouts"},{"name":"Events","value":"ga:totalEvents"},{"name":"Page Views","value":"ga:pageviews"},{"name":"Session Duration","value":"ga:sessionDuration"},{"name":"Sessions","value":"ga:sessions"},{"name":"Sessions per User","value":"ga:sessionsPerUser"},{"name":"Total Users","value":"ga:users"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetrics","loadOptionsDependsOn":["viewId.value"]},"default":"ga:users","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Expression","name":"expression","type":"string","default":"","placeholder":"e.g. ga:totalRefunds/ga:users","description":"Learn more about Google Analytics <a href=\"https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#Metric\">metric expressions</a>","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Formatting Type","name":"formattingType","type":"options","default":"INTEGER","description":"Specifies how the metric expression should be formatted","options":[{"name":"Currency","value":"CURRENCY"},{"name":"Float","value":"FLOAT"},{"name":"Integer","value":"INTEGER"},{"name":"Percent","value":"PERCENT"},{"name":"Time","value":"TIME"}],"displayOptions":{"show":{"listName":["custom"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Dimensions to split by","name":"dimensionsUA","type":"fixedCollection","default":{"dimensionValues":[{"listName":"ga:date"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension","description":"Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, \"Paris\" or \"New York\", from which a session originates.","options":[{"displayName":"Values","name":"dimensionValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"ga:date","options":[{"name":"Browser","value":"ga:browser"},{"name":"Campaign","value":"ga:campaign"},{"name":"City","value":"ga:city"},{"name":"Country","value":"ga:country"},{"name":"Date","value":"ga:date"},{"name":"Device Category","value":"ga:deviceCategory"},{"name":"Item Name","value":"ga:productName"},{"name":"Language","value":"ga:language"},{"name":"Page","value":"ga:pagePath"},{"name":"Source / Medium","value":"ga:sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions","loadOptionsDependsOn":["viewId.value"]},"default":"ga:date","description":"Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":1000},"default":50,"description":"Max number of results to return"},{"displayName":"Simplify Output","name":"simple","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}},"options":[{"displayName":"Dimension Filters","name":"dimensionFiltersUi","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension Filter","description":"Dimension Filters in the request","options":[{"displayName":"Filters","name":"filterValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"ga:date","options":[{"name":"Browser","value":"ga:browser"},{"name":"Campaign","value":"ga:campaign"},{"name":"City","value":"ga:city"},{"name":"Country","value":"ga:country"},{"name":"Date","value":"ga:date"},{"name":"Device Category","value":"ga:deviceCategory"},{"name":"Item Name","value":"ga:productName"},{"name":"Language","value":"ga:language"},{"name":"Page","value":"ga:pagePath"},{"name":"Source / Medium","value":"ga:sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions","loadOptionsDependsOn":["viewId.value"]},"default":"ga:date","description":"Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Operator","name":"operator","type":"options","default":"EXACT","description":"Operator to use in combination with value","options":[{"name":"Begins With","value":"BEGINS_WITH"},{"name":"Ends With","value":"ENDS_WITH"},{"name":"Equals (Number)","value":"NUMERIC_EQUAL"},{"name":"Exactly Matches","value":"EXACT"},{"name":"Greater Than (Number)","value":"NUMERIC_GREATER_THAN"},{"name":"Less Than (Number)","value":"NUMERIC_LESS_THAN"},{"name":"Partly Matches","value":"PARTIAL"},{"name":"Regular Expression","value":"REGEXP"}]},{"displayName":"Value","name":"expressions","type":"string","default":"","placeholder":"","description":"String or <a href=\"https://support.google.com/analytics/answer/1034324?hl=en\">regular expression</a> to match against"}]}]},{"displayName":"Hide Totals","name":"hideTotals","type":"boolean","default":false,"description":"Whether to hide the total of all metrics for all the matching rows, for every date range","displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Hide Value Ranges","name":"hideValueRanges","type":"boolean","default":false,"description":"Whether to hide the minimum and maximum across all matching rows","displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Include Empty Rows","name":"includeEmptyRows","type":"boolean","default":false,"description":"Whether the response exclude rows if all the retrieved metrics are equal to zero"},{"displayName":"Use Resource Quotas","name":"useResourceQuotas","type":"boolean","default":false,"description":"Whether to enable resource based quotas","displayOptions":{"show":{"/simple":[false]}}}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["userActivity"]}},"options":[{"name":"Search","value":"search","description":"Return user activity data","action":"Search user activity data"}],"default":"search"},{"displayName":"View Name or ID","name":"viewId","type":"options","typeOptions":{"loadOptionsMethod":"getViews"},"default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"The view from Google Analytics. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","hint":"If there's nothing here, try changing the 'Property type' field above"},{"displayName":"User ID","name":"userId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"ID of a user"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"options":[{"displayName":"Activity Types","name":"activityTypes","type":"multiOptions","options":[{"name":"Ecommerce","value":"ECOMMERCE"},{"name":"Event","value":"EVENT"},{"name":"Goal","value":"GOAL"},{"name":"Pageview","value":"PAGEVIEW"},{"name":"Screenview","value":"SCREENVIEW"}],"description":"Type of activites requested","default":[]}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/Analytics/analytics.svg","codex":{"categories":["Analytics"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googleanalytics/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"}]}}},
133
+ {"displayName":"Google Analytics","name":"n8n-nodes-base.googleAnalytics","group":["transform"],"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Use the Google Analytics API","defaultVersion":2,"version":2,"defaults":{"name":"Google Analytics"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleAnalyticsOAuth2","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Report","value":"report"},{"name":"User Activity","value":"userActivity"}],"default":"report"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["report"]}},"options":[{"name":"Get","value":"get","description":"Return the analytics data","action":"Get a report"}],"default":"get"},{"displayName":"Property Type","name":"propertyType","type":"options","noDataExpression":true,"description":"Google Analytics 4 is the latest version. Universal Analytics is an older version that is not fully functional after the end of June 2023.","options":[{"name":"Google Analytics 4","value":"ga4"},{"name":"Universal Analytics","value":"universal"}],"default":"ga4","displayOptions":{"show":{"resource":["report"],"operation":["get"]}}},{"displayName":"Property","name":"propertyId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The Property of Google Analytics","hint":"If this doesn't work, try changing the 'Property Type' field above","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a property...","typeOptions":{"searchListMethod":"searchProperties","searchFilterRequired":false,"searchable":false}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://analytics.google.com/analytics/...","validation":[{"type":"regex","properties":{"regex":".*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)*","errorMessage":"Not a valid Google Analytics URL"}}],"extractValue":{"type":"regex","regex":".*analytics\\.google\\.com\\/analytics.*\\/p([0-9]{1,})(?:\\/.*|)"}},{"displayName":"By ID","name":"id","type":"string","placeholder":"123456","validation":[{"type":"regex","properties":{"regex":"[0-9]{1,}","errorMessage":"Not a valid Google Analytics Property ID"}}],"url":"=https://analytics.google.com/analytics/web/#/p{{$value}}/"}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Date Range","name":"dateRange","type":"options","required":true,"options":[{"name":"Last 7 Days","value":"last7days"},{"name":"Last 30 Days","value":"last30days"},{"name":"Today","value":"today"},{"name":"Yesterday","value":"yesterday"},{"name":"Last Complete Calendar Week","value":"lastCalendarWeek"},{"name":"Last Complete Calendar Month","value":"lastCalendarMonth"},{"name":"Custom","value":"custom"}],"default":"last7days","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Start","name":"startDate","type":"dateTime","required":true,"default":"2023-08-23T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"dateRange":["custom"],"propertyType":["ga4"]}}},{"displayName":"End","name":"endDate","type":"dateTime","required":true,"default":"2023-08-30T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"dateRange":["custom"],"propertyType":["ga4"]}}},{"displayName":"Metrics","name":"metricsGA4","type":"fixedCollection","default":{"metricValues":[{"listName":"totalUsers"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Metric","description":"The quantitative measurements of a report. For example, the metric eventCount is the total number of events. Requests are allowed up to 10 metrics.","options":[{"displayName":"Values","name":"metricValues","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Expression","name":"expression","type":"string","default":"","description":"A mathematical expression for derived metrics. For example, the metric Event count per user is eventCount/totalUsers.","placeholder":"e.g. eventCount/totalUsers","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Invisible","name":"invisible","type":"boolean","default":false,"displayOptions":{"show":{"listName":["custom"]}},"description":"Whether a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in metricFilter, orderBys, or a metric expression."}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Dimensions to split by","name":"dimensionsGA4","type":"fixedCollection","default":{"dimensionValues":[{"listName":"date"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension","description":"Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be \"Paris\" or \"New York\". Requests are allowed up to 9 dimensions.","options":[{"displayName":"Values","name":"dimensionValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":1000},"default":50,"description":"Max number of results to return"},{"displayName":"Simplify Output","name":"simple","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["ga4"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["ga4"]}},"options":[{"displayName":"Currency Code","name":"currencyCode","type":"string","default":"","description":"A currency code in ISO4217 format, such as \"AED\", \"USD\", \"JPY\". If the field is empty, the report uses the property's default currency."},{"displayName":"Dimensions Filters","name":"dimensionFiltersUI","type":"fixedCollection","default":{},"placeholder":"Add Filter","options":[{"displayName":"Filter Expressions","name":"filterExpressions","values":[{"displayName":"Filter Expression Type","name":"filterExpressionType","type":"options","default":"andGroup","options":[{"name":"And Group","value":"andGroup"},{"name":"Or Group","value":"orGroup"}]},{"displayName":"Expression","name":"expression","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"placeholder":"Add Expression","options":[{"displayName":"String Filter","name":"stringFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Case Sensitive","name":"caseSensitive","type":"boolean","default":true},{"displayName":"Match Type","name":"matchType","type":"options","default":"EXACT","options":[{"name":"Begins With","value":"BEGINS_WITH"},{"name":"Contains Value","value":"CONTAINS"},{"name":"Ends With","value":"ENDS_WITH"},{"name":"Exact Match","value":"EXACT"},{"name":"Full Match for the Regular Expression","value":"FULL_REGEXP"},{"name":"Partial Match for the Regular Expression","value":"PARTIAL_REGEXP"}]}]},{"displayName":"In List Filter","name":"inListFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Values","name":"values","type":"string","default":"","hint":"Comma separated list of values. Must be non-empty."},{"displayName":"Case Sensitive","name":"caseSensitive","type":"boolean","default":true}]},{"displayName":"Numeric Filter","name":"numericFilter","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"date","options":[{"name":"Browser","value":"browser"},{"name":"Campaign","value":"campaignName"},{"name":"City","value":"city"},{"name":"Country","value":"country"},{"name":"Date","value":"date"},{"name":"Device Category","value":"deviceCategory"},{"name":"Item Name","value":"itemName"},{"name":"Language","value":"language"},{"name":"Page Location","value":"pageLocation"},{"name":"Source / Medium","value":"sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"date","description":"The name of the dimension. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"EQUAL","options":[{"name":"Equal","value":"EQUAL"},{"name":"Greater Than","value":"GREATER_THAN"},{"name":"Greater than or Equal","value":"GREATER_THAN_OR_EQUAL"},{"name":"Less Than","value":"LESS_THAN"},{"name":"Less than or Equal","value":"LESS_THAN_OR_EQUAL"}]}]}]}]}]},{"displayName":"Metric Aggregation","name":"metricAggregations","type":"multiOptions","default":[],"options":[{"name":"MAXIMUM","value":"MAXIMUM"},{"name":"MINIMUM","value":"MINIMUM"},{"name":"TOTAL","value":"TOTAL"}],"displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Metrics Filters","name":"metricsFiltersUI","type":"fixedCollection","default":{},"placeholder":"Add Filter","options":[{"displayName":"Filter Expressions","name":"filterExpressions","values":[{"displayName":"Filter Expression Type","name":"filterExpressionType","type":"options","default":"andGroup","options":[{"name":"And Group","value":"andGroup"},{"name":"Or Group","value":"orGroup"}]},{"displayName":"Expression","name":"expression","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"placeholder":"Add Expression","options":[{"displayName":"Between Filter","name":"betweenFilter","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"From Value","name":"fromValue","type":"string","default":""},{"displayName":"To Value","name":"toValue","type":"string","default":""}]},{"displayName":"Numeric Filter","name":"numericFilter","values":[{"displayName":"Metric","name":"listName","type":"options","default":"totalUsers","options":[{"name":"1 Day Active Users","value":"active1DayUsers"},{"name":"28 Day Active Users","value":"active28DayUsers"},{"name":"7 Day Active Users","value":"active7DayUsers"},{"name":"Checkouts","value":"checkouts"},{"name":"Events","value":"eventCount"},{"name":"Page Views","value":"screenPageViews"},{"name":"Session Duration","value":"userEngagementDuration"},{"name":"Sessions","value":"sessions"},{"name":"Sessions per User","value":"sessionsPerUser"},{"name":"Total Users","value":"totalUsers"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"totalUsers","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Value Type","name":"valueType","type":"options","default":"doubleValue","options":[{"name":"Double Value","value":"doubleValue"},{"name":"Integer Value","value":"int64Value"}]},{"displayName":"Value","name":"value","type":"string","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"EQUAL","options":[{"name":"Equal","value":"EQUAL"},{"name":"Greater Than","value":"GREATER_THAN"},{"name":"Greater than or Equal","value":"GREATER_THAN_OR_EQUAL"},{"name":"Less Than","value":"LESS_THAN"},{"name":"Less than or Equal","value":"LESS_THAN_OR_EQUAL"}]}]}]}]}]},{"displayName":"Keep Empty Rows","name":"keepEmptyRows","type":"boolean","default":false,"description":"Whether false or unspecified, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter."},{"displayName":"Order By","name":"orderByUI","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Order","description":"Specifies how rows are ordered in the response","options":[{"displayName":"Metric Order By","name":"metricOrderBy","values":[{"displayName":"Descending","name":"desc","type":"boolean","default":false,"description":"Whether true, sorts by descending order"},{"displayName":"Metric Name or ID","name":"metricName","type":"options","typeOptions":{"loadOptionsMethod":"getMetricsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"","description":"Sorts by metric values. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Dimmension Order By","name":"dimmensionOrderBy","values":[{"displayName":"Descending","name":"desc","type":"boolean","default":false,"description":"Whether true, sorts by descending order"},{"displayName":"Dimmension Name or ID","name":"dimensionName","type":"options","typeOptions":{"loadOptionsMethod":"getDimensionsGA4","loadOptionsDependsOn":["propertyId.value"]},"default":"","description":"Sorts by metric values. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Order Type","name":"orderType","type":"options","default":"ORDER_TYPE_UNSPECIFIED","options":[{"name":"Alphanumeric","value":"ALPHANUMERIC","description":"Alphanumeric sort by Unicode code point"},{"name":"Case Insensitive Alphanumeric","value":"CASE_INSENSITIVE_ALPHANUMERIC","description":"Case insensitive alphanumeric sort by lower case Unicode code point"},{"name":"Numeric","value":"NUMERIC","description":"Dimension values are converted to numbers before sorting"},{"name":"Unspecified","value":"ORDER_TYPE_UNSPECIFIED"}]}]}]},{"displayName":"Return Property Quota","name":"returnPropertyQuota","type":"boolean","default":false,"description":"Whether to return the current state of this Analytics Property's quota. Quota is returned in PropertyQuota.","displayOptions":{"show":{"/simple":[false]}}}]},{"displayName":"View","name":"viewId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The View of Google Analytics","hint":"If this doesn't work, try changing the 'Property Type' field above","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a view...","typeOptions":{"searchListMethod":"searchViews","searchFilterRequired":false,"searchable":false}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://analytics.google.com/analytics/...","validation":[{"type":"regex","properties":{"regex":".*analytics.google.com/analytics.*p[0-9]{1,}.*","errorMessage":"Not a valid Google Analytics URL"}}],"extractValue":{"type":"regex","regex":".*analytics.google.com/analytics.*p([0-9]{1,})"}},{"displayName":"By ID","name":"id","type":"string","placeholder":"123456","validation":[{"type":"regex","properties":{"regex":"[0-9]{1,}","errorMessage":"Not a valid Google Analytics View ID"}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Date Range","name":"dateRange","type":"options","required":true,"options":[{"name":"Last 7 Days","value":"last7days"},{"name":"Last 30 Days","value":"last30days"},{"name":"Today","value":"today"},{"name":"Yesterday","value":"yesterday"},{"name":"Last Complete Calendar Week","value":"lastCalendarWeek"},{"name":"Last Complete Calendar Month","value":"lastCalendarMonth"},{"name":"Custom","value":"custom"}],"default":"last7days","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Start","name":"startDate","type":"dateTime","required":true,"default":"2023-08-23T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"],"dateRange":["custom"]}}},{"displayName":"End","name":"endDate","type":"dateTime","required":true,"default":"2023-08-30T00:00:00.000+00:00","displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"],"dateRange":["custom"]}}},{"displayName":"Metrics","name":"metricsUA","type":"fixedCollection","default":{"metricValues":[{"listName":"ga:users"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add metric","description":"Metrics in the request","options":[{"displayName":"Metric","name":"metricValues","values":[{"displayName":"Metric","name":"listName","type":"options","default":"ga:users","options":[{"name":"Checkouts","value":"ga:productCheckouts"},{"name":"Events","value":"ga:totalEvents"},{"name":"Page Views","value":"ga:pageviews"},{"name":"Session Duration","value":"ga:sessionDuration"},{"name":"Sessions","value":"ga:sessions"},{"name":"Sessions per User","value":"ga:sessionsPerUser"},{"name":"Total Users","value":"ga:users"},{"name":"Other metrics…","value":"other"},{"name":"Custom metric…","value":"custom"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getMetrics","loadOptionsDependsOn":["viewId.value"]},"default":"ga:users","hint":"If expression is specified, name can be any string that you would like","description":"The name of the metric. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Name","name":"name","type":"string","default":"custom_metric","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Expression","name":"expression","type":"string","default":"","placeholder":"e.g. ga:totalRefunds/ga:users","description":"Learn more about Google Analytics <a href=\"https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#Metric\">metric expressions</a>","displayOptions":{"show":{"listName":["custom"]}}},{"displayName":"Formatting Type","name":"formattingType","type":"options","default":"INTEGER","description":"Specifies how the metric expression should be formatted","options":[{"name":"Currency","value":"CURRENCY"},{"name":"Float","value":"FLOAT"},{"name":"Integer","value":"INTEGER"},{"name":"Percent","value":"PERCENT"},{"name":"Time","value":"TIME"}],"displayOptions":{"show":{"listName":["custom"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Dimensions to split by","name":"dimensionsUA","type":"fixedCollection","default":{"dimensionValues":[{"listName":"ga:date"}]},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension","description":"Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, \"Paris\" or \"New York\", from which a session originates.","options":[{"displayName":"Values","name":"dimensionValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"ga:date","options":[{"name":"Browser","value":"ga:browser"},{"name":"Campaign","value":"ga:campaign"},{"name":"City","value":"ga:city"},{"name":"Country","value":"ga:country"},{"name":"Date","value":"ga:date"},{"name":"Device Category","value":"ga:deviceCategory"},{"name":"Item Name","value":"ga:productName"},{"name":"Language","value":"ga:language"},{"name":"Page","value":"ga:pagePath"},{"name":"Source / Medium","value":"ga:sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions","loadOptionsDependsOn":["viewId.value"]},"default":"ga:date","description":"Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}}]}],"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":1000},"default":50,"description":"Max number of results to return"},{"displayName":"Simplify Output","name":"simple","type":"boolean","displayOptions":{"show":{"operation":["get"],"resource":["report"],"propertyType":["universal"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["report"],"operation":["get"],"propertyType":["universal"]}},"options":[{"displayName":"Dimension Filters","name":"dimensionFiltersUi","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"placeholder":"Add Dimension Filter","description":"Dimension Filters in the request","options":[{"displayName":"Filters","name":"filterValues","values":[{"displayName":"Dimension","name":"listName","type":"options","default":"ga:date","options":[{"name":"Browser","value":"ga:browser"},{"name":"Campaign","value":"ga:campaign"},{"name":"City","value":"ga:city"},{"name":"Country","value":"ga:country"},{"name":"Date","value":"ga:date"},{"name":"Device Category","value":"ga:deviceCategory"},{"name":"Item Name","value":"ga:productName"},{"name":"Language","value":"ga:language"},{"name":"Page","value":"ga:pagePath"},{"name":"Source / Medium","value":"ga:sourceMedium"},{"name":"Other dimensions…","value":"other"}]},{"displayName":"Name or ID","name":"name","type":"options","typeOptions":{"loadOptionsMethod":"getDimensions","loadOptionsDependsOn":["viewId.value"]},"default":"ga:date","description":"Name of the dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","displayOptions":{"show":{"listName":["other"]}}},{"displayName":"Operator","name":"operator","type":"options","default":"EXACT","description":"Operator to use in combination with value","options":[{"name":"Begins With","value":"BEGINS_WITH"},{"name":"Ends With","value":"ENDS_WITH"},{"name":"Equals (Number)","value":"NUMERIC_EQUAL"},{"name":"Exactly Matches","value":"EXACT"},{"name":"Greater Than (Number)","value":"NUMERIC_GREATER_THAN"},{"name":"Less Than (Number)","value":"NUMERIC_LESS_THAN"},{"name":"Partly Matches","value":"PARTIAL"},{"name":"Regular Expression","value":"REGEXP"}]},{"displayName":"Value","name":"expressions","type":"string","default":"","placeholder":"","description":"String or <a href=\"https://support.google.com/analytics/answer/1034324?hl=en\">regular expression</a> to match against"}]}]},{"displayName":"Hide Totals","name":"hideTotals","type":"boolean","default":false,"description":"Whether to hide the total of all metrics for all the matching rows, for every date range","displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Hide Value Ranges","name":"hideValueRanges","type":"boolean","default":false,"description":"Whether to hide the minimum and maximum across all matching rows","displayOptions":{"show":{"/simple":[false]}}},{"displayName":"Include Empty Rows","name":"includeEmptyRows","type":"boolean","default":false,"description":"Whether the response exclude rows if all the retrieved metrics are equal to zero"},{"displayName":"Use Resource Quotas","name":"useResourceQuotas","type":"boolean","default":false,"description":"Whether to enable resource based quotas","displayOptions":{"show":{"/simple":[false]}}}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["userActivity"]}},"options":[{"name":"Search","value":"search","description":"Return user activity data","action":"Search user activity data"}],"default":"search"},{"displayName":"View Name or ID","name":"viewId","type":"options","typeOptions":{"loadOptionsMethod":"getViews"},"default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"The view from Google Analytics. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>.","hint":"If there's nothing here, try changing the 'Property type' field above"},{"displayName":"User ID","name":"userId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["userActivity"],"operation":["search"]}},"placeholder":"123456","description":"ID of a user"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["search"],"resource":["userActivity"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"operation":["search"],"resource":["userActivity"]}},"options":[{"displayName":"Activity Types","name":"activityTypes","type":"multiOptions","options":[{"name":"Ecommerce","value":"ECOMMERCE"},{"name":"Event","value":"EVENT"},{"name":"Goal","value":"GOAL"},{"name":"Pageview","value":"PAGEVIEW"},{"name":"Screenview","value":"SCREENVIEW"}],"description":"Type of activites requested","default":[]}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/Analytics/analytics.svg","codex":{"categories":["Analytics"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googleanalytics/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"}]}}},
134
134
  {"displayName":"Google BigQuery","name":"n8n-nodes-base.googleBigQuery","group":["input"],"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Google BigQuery API","defaultVersion":2,"version":1,"defaults":{"name":"Google BigQuery"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleApi","required":true,"displayOptions":{"show":{"authentication":["serviceAccount"]}}},{"name":"googleBigQueryOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Authentication","name":"authentication","type":"options","noDataExpression":true,"options":[{"name":"OAuth2 (recommended)","value":"oAuth2"},{"name":"Service Account","value":"serviceAccount"}],"default":"oAuth2"},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Record","value":"record"}],"default":"record"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["record"]}},"options":[{"name":"Create","value":"create","description":"Create a new record","action":"Create a record"},{"name":"Get Many","value":"getAll","description":"Retrieve many records","action":"Get many records"}],"default":"create"},{"displayName":"Project Name or ID","name":"projectId","type":"options","typeOptions":{"loadOptionsMethod":"getProjects"},"required":true,"displayOptions":{"show":{"operation":["create"],"resource":["record"]}},"default":"","description":"ID of the project to create the record in. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Dataset Name or ID","name":"datasetId","type":"options","typeOptions":{"loadOptionsMethod":"getDatasets","loadOptionsDependsOn":["projectId"]},"required":true,"displayOptions":{"show":{"operation":["create"],"resource":["record"]}},"default":"","description":"ID of the dataset to create the record in. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Table Name or ID","name":"tableId","type":"options","typeOptions":{"loadOptionsMethod":"getTables","loadOptionsDependsOn":["projectId","datasetId"]},"required":true,"displayOptions":{"show":{"operation":["create"],"resource":["record"]}},"default":"","description":"ID of the table to create the record in. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"resource":["record"],"operation":["create"]}},"default":"","required":true,"placeholder":"id,name,description","description":"Comma-separated list of the item properties to use as columns"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Options","default":{},"displayOptions":{"show":{"operation":["create"],"resource":["record"]}},"options":[{"displayName":"Ignore Unknown Values","name":"ignoreUnknownValues","type":"boolean","default":false,"description":"Whether to gnore row values that do not match the schema"},{"displayName":"Skip Invalid Rows","name":"skipInvalidRows","type":"boolean","default":false,"description":"Whether to skip rows with values that do not match the schema"},{"displayName":"Template Suffix","name":"templateSuffix","type":"string","default":"","description":"Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>"},{"displayName":"Trace ID","name":"traceId","type":"string","default":"","description":"Unique ID for the request, for debugging only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended."}]},{"displayName":"Project Name or ID","name":"projectId","type":"options","typeOptions":{"loadOptionsMethod":"getProjects"},"required":true,"displayOptions":{"show":{"operation":["getAll"],"resource":["record"]}},"default":"","description":"ID of the project to retrieve all rows from. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Dataset Name or ID","name":"datasetId","type":"options","typeOptions":{"loadOptionsMethod":"getDatasets","loadOptionsDependsOn":["projectId"]},"required":true,"displayOptions":{"show":{"operation":["getAll"],"resource":["record"]}},"default":"","description":"ID of the dataset to retrieve all rows from. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Table Name or ID","name":"tableId","type":"options","typeOptions":{"loadOptionsMethod":"getTables","loadOptionsDependsOn":["projectId","datasetId"]},"required":true,"displayOptions":{"show":{"operation":["getAll"],"resource":["record"]}},"default":"","description":"ID of the table to retrieve all rows from. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"],"resource":["record"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"resource":["record"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":50,"description":"Max number of results to return"},{"displayName":"Simplify","name":"simple","type":"boolean","displayOptions":{"show":{"resource":["record"],"operation":["getAll"]}},"default":true,"description":"Whether to return a simplified version of the response instead of the raw data"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Options","default":{},"displayOptions":{"show":{"operation":["getAll"],"resource":["record"]}},"options":[{"displayName":"Fields","name":"selectedFields","type":"string","default":"","description":"Subset of fields to return, supports select into sub fields. Example: <code>selectedFields = \"a,e.d.f\"</code>"}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/BigQuery/googleBigQuery.svg"},
135
135
  {"displayName":"Google BigQuery","name":"n8n-nodes-base.googleBigQuery","group":["input"],"subtitle":"={{$parameter[\"operation\"]}}","description":"Consume Google BigQuery API","defaultVersion":2,"version":2,"defaults":{"name":"Google BigQuery"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleApi","required":true,"displayOptions":{"show":{"authentication":["serviceAccount"]}}},{"name":"googleBigQueryOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","noDataExpression":true,"options":[{"name":"OAuth2 (recommended)","value":"oAuth2"},{"name":"Service Account","value":"serviceAccount"}],"default":"oAuth2"},{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["database"]}},"options":[{"name":"Execute Query","value":"executeQuery","description":"Execute a SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"}],"default":"executeQuery"},{"displayName":"Project","name":"projectId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"searchProjects","searchable":true}},{"displayName":"By URL","name":"url","type":"string","extractValue":{"type":"regex","regex":"https:\\/\\/console.cloud.google.com\\/bigquery\\?project=([0-9a-zA-Z\\-_]+).{0,}"},"validation":[{"type":"regex","properties":{"regex":"https:\\/\\/console.cloud.google.com\\/bigquery\\?project=([0-9a-zA-Z\\-_]+).{0,}","errorMessage":"Not a valid BigQuery Project URL"}}]},{"displayName":"By ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9\\-_]{2,}","errorMessage":"Not a valid BigQuery Project ID"}}],"url":"=https://console.cloud.google.com/bigquery?project={{$value}}"}],"description":"Projects to which you have been granted any project role","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery","insert"]}}},{"displayName":"Dataset","name":"datasetId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"searchDatasets","searchable":true}},{"displayName":"By ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9\\-_]{2,}","errorMessage":"Not a valid Dataset ID"}}]}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]}}},{"displayName":"Table","name":"tableId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"By ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[a-zA-Z0-9\\-_]{2,}","errorMessage":"Not a valid Table ID"}}]}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]}}},{"displayName":"SQL Query","name":"sqlQuery","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor"},"displayOptions":{"hide":{"/options.useLegacySql":[true]},"show":{"resource":["database"],"operation":["executeQuery"]}},"default":"","placeholder":"SELECT * FROM dataset.table LIMIT 100","description":"SQL query to execute, you can find more information <a href=\"https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax\" target=\"_blank\">here</a>. Standard SQL syntax used by default, but you can also use Legacy SQL syntax by using optinon 'Use Legacy SQL'."},{"displayName":"SQL Query","name":"sqlQuery","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor"},"displayOptions":{"show":{"/options.useLegacySql":[true],"resource":["database"],"operation":["executeQuery"]}},"default":"","placeholder":"SELECT * FROM [project:dataset.table] LIMIT 100;","hint":"Legacy SQL syntax","description":"SQL query to execute, you can find more information about Legacy SQL syntax <a href=\"https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax\" target=\"_blank\">here</a>"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Options","default":{},"options":[{"displayName":"Default Dataset Name or ID","name":"defaultDataset","type":"options","typeOptions":{"loadOptionsMethod":"getDatasets","loadOptionsDependsOn":["projectId.value"]},"default":"","description":"If not set, all table names in the query string must be qualified in the format 'datasetId.tableId'. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Dry Run","name":"dryRun","type":"boolean","default":false,"description":"Whether set to true BigQuery doesn't run the job. Instead, if the query is valid, BigQuery returns statistics about the job such as how many bytes would be processed. If the query is invalid, an error returns."},{"displayName":"Include Schema in Output","name":"includeSchema","type":"boolean","default":false,"description":"Whether to include the schema in the output. If set to true, the output will contain key '_schema' with the schema of the table.","displayOptions":{"hide":{"rawOutput":[true]}}},{"displayName":"Location (Region)","name":"location","type":"string","default":"","placeholder":"e.g. europe-west3","description":"Location or the region where data would be stored and processed. Pricing for storage and analysis is also defined by location of data and reservations, more information <a href=\"https://cloud.google.com/bigquery/docs/locations\" target=\"_blank\">here</a>."},{"displayName":"Maximum Bytes Billed","name":"maximumBytesBilled","type":"string","default":"","description":"Limits the bytes billed for this query. Queries with bytes billed above this limit will fail (without incurring a charge). String in <a href=\"https://developers.google.com/discovery/v1/type-format?utm_source=cloud.google.com&utm_medium=referral\" target=\"_blank\">Int64Value</a> format"},{"displayName":"Max Results","name":"maxResults","type":"number","default":1000,"description":"The maximum number of rows of data to return"},{"displayName":"Timeout","name":"timeoutMs","type":"number","default":10000,"description":"How long to wait for the query to complete, in milliseconds"},{"displayName":"Raw Output","name":"rawOutput","type":"boolean","default":false,"displayOptions":{"hide":{"dryRun":[true]}}},{"displayName":"Use Legacy SQL","name":"useLegacySql","type":"boolean","default":false,"description":"Whether to use BigQuery's legacy SQL dialect for this query. If set to false, the query will use BigQuery's standard SQL."}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data","value":"autoMap","description":"Use when node input properties match destination field names"},{"name":"Map Each Field Below","value":"define","description":"Set the value for each destination field"}],"default":"autoMap","description":"Whether to insert the input data this node receives in the new row","displayOptions":{"show":{"resource":["database"],"operation":["insert"]}}},{"displayName":"In this mode, make sure the incoming data fields are named the same as the columns in BigQuery. (Use a 'set' node before this node to change them if required.)","name":"info","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMap"],"resource":["database"],"operation":["insert"]}}},{"displayName":"Fields to Send","name":"fieldsUi","placeholder":"Add Field","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Field","multipleValues":true},"default":{},"options":[{"displayName":"Field","name":"values","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsDependsOn":["projectId.value","datasetId.value","tableId.value"],"loadOptionsMethod":"getSchema"},"default":""},{"displayName":"Field Value","name":"fieldValue","type":"string","default":""}]}],"displayOptions":{"show":{"dataMode":["define"],"resource":["database"],"operation":["insert"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Options","default":{},"options":[{"displayName":"Batch Size","name":"batchSize","type":"number","default":100,"typeOptions":{"minValue":1}},{"displayName":"Ignore Unknown Values","name":"ignoreUnknownValues","type":"boolean","default":false,"description":"Whether to gnore row values that do not match the schema"},{"displayName":"Skip Invalid Rows","name":"skipInvalidRows","type":"boolean","default":false,"description":"Whether to skip rows with values that do not match the schema"},{"displayName":"Template Suffix","name":"templateSuffix","type":"string","default":"","description":"Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>"},{"displayName":"Trace ID","name":"traceId","type":"string","default":"","description":"Unique ID for the request, for debugging only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended."}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/BigQuery/googleBigQuery.svg","codex":{"categories":["Data & Storage","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlebigquery/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"}]}}},
136
136
  {"displayName":"Google Books","name":"n8n-nodes-base.googleBooks","group":["input","output"],"version":[1,2],"description":"Read data from Google Books","subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","defaults":{"name":"Google Books"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"googleApi","required":true,"displayOptions":{"show":{"authentication":["serviceAccount"]}}},{"name":"googleBooksOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"Service Account","value":"serviceAccount"},{"name":"OAuth2","value":"oAuth2"}],"default":"serviceAccount","displayOptions":{"show":{"@version":[1]}}},{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"OAuth2 (recommended)","value":"oAuth2"},{"name":"Service Account","value":"serviceAccount"}],"default":"oAuth2","displayOptions":{"show":{"@version":[2]}}},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Bookshelf","value":"bookshelf"},{"name":"Bookshelf Volume","value":"bookshelfVolume"},{"name":"Volume","value":"volume"}],"default":"bookshelf"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Get","value":"get","description":"Retrieve a specific bookshelf resource for the specified user","action":"Get a bookshelf"},{"name":"Get Many","value":"getAll","description":"Get many public bookshelf resource for the specified user","action":"Get many bookshelves"}],"displayOptions":{"show":{"resource":["bookshelf"]}},"default":"get"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Add","value":"add","description":"Add a volume to a bookshelf","action":"Add a bookshelf volume"},{"name":"Clear","value":"clear","description":"Clears all volumes from a bookshelf","action":"Clear a bookshelf volume"},{"name":"Get Many","value":"getAll","description":"Get many volumes in a specific bookshelf for the specified user","action":"Get many bookshelf volumes"},{"name":"Move","value":"move","description":"Moves a volume within a bookshelf","action":"Move a bookshelf volume"},{"name":"Remove","value":"remove","description":"Removes a volume from a bookshelf","action":"Remove a bookshelf volume"}],"displayOptions":{"show":{"resource":["bookshelfVolume"]}},"default":"getAll"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Get","value":"get","description":"Get a volume resource based on ID","action":"Get a volume"},{"name":"Get Many","value":"getAll","description":"Get many volumes filtered by query","action":"Get many volumes"}],"displayOptions":{"show":{"resource":["volume"]}},"default":"get"},{"displayName":"My Library","name":"myLibrary","type":"boolean","default":false,"required":true,"displayOptions":{"show":{"operation":["get","getAll"],"resource":["bookshelf","bookshelfVolume"]}}},{"displayName":"Search Query","name":"searchQuery","type":"string","description":"Full-text search query string","default":"","required":true,"displayOptions":{"show":{"operation":["getAll"],"resource":["volume"]}}},{"displayName":"User ID","name":"userId","type":"string","description":"ID of user","default":"","required":true,"displayOptions":{"show":{"operation":["get","getAll"],"resource":["bookshelf","bookshelfVolume"]},"hide":{"myLibrary":[true]}}},{"displayName":"Bookshelf ID","name":"shelfId","type":"string","description":"ID of the bookshelf","default":"","required":true,"displayOptions":{"show":{"operation":["get","add","clear","move","remove"],"resource":["bookshelf","bookshelfVolume"]}}},{"displayName":"Bookshelf ID","name":"shelfId","type":"string","description":"ID of the bookshelf","default":"","required":true,"displayOptions":{"show":{"operation":["getAll"],"resource":["bookshelfVolume"]}}},{"displayName":"Volume ID","name":"volumeId","type":"string","description":"ID of the volume","default":"","required":true,"displayOptions":{"show":{"operation":["add","move","remove","get"],"resource":["bookshelfVolume","volume"]}}},{"displayName":"Volume Position","name":"volumePosition","type":"string","description":"Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on)","default":"","required":true,"displayOptions":{"show":{"operation":["move"],"resource":["bookshelfVolume"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":40},"default":40,"description":"Max number of results to return"}],"codex":{"categories":["Miscellaneous"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlebooks/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Google/Books/googlebooks.svg"},
@@ -263,9 +263,10 @@
263
263
  {"displayName":"MQTT","name":"n8n-nodes-base.mqtt","group":["input"],"version":1,"description":"Push messages to MQTT","defaults":{"name":"MQTT"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mqtt","required":true,"testedBy":"mqttConnectionTest"}],"properties":[{"displayName":"Topic","name":"topic","type":"string","required":true,"default":"","description":"The topic to publish to"},{"displayName":"Send Input Data","name":"sendInputData","type":"boolean","default":true,"description":"Whether to send the the data the node receives as JSON"},{"displayName":"Message","name":"message","type":"string","required":true,"displayOptions":{"show":{"sendInputData":[false]}},"default":"","description":"The message to publish"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"QoS","name":"qos","type":"options","options":[{"name":"Received at Most Once","value":0},{"name":"Received at Least Once","value":1},{"name":"Exactly Once","value":2}],"default":0,"description":"QoS subscription level"},{"displayName":"Retain","name":"retain","type":"boolean","default":false,"description":"Normally if a publisher publishes a message to a topic, and no one is subscribed to that topic the message is simply discarded by the broker. However the publisher can tell the broker to keep the last message on that topic by setting the retain flag to true."}]}],"codex":{"categories":["Development","Communication"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mqtt/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/mqtt"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/MQTT/mqtt.svg"},
264
264
  {"displayName":"MQTT Trigger","name":"n8n-nodes-base.mqttTrigger","group":["trigger"],"version":1,"description":"Listens to MQTT events","eventTriggerDescription":"","defaults":{"name":"MQTT Trigger"},"triggerPanel":{"header":"","executionsHelp":{"inactive":"<b>While building your workflow</b>, click the 'listen' button, then trigger an MQTT event. This will trigger an execution, which will show up in this editor.<br /> <br /><b>Once you're happy with your workflow</b>, <a data-key='activate'>activate</a> it. Then every time a change is detected, the workflow will execute. These executions will show up in the <a data-key='executions'>executions list</a>, but not in the editor.","active":"<b>While building your workflow</b>, click the 'listen' button, then trigger an MQTT event. This will trigger an execution, which will show up in this editor.<br /> <br /><b>Your workflow will also execute automatically</b>, since it's activated. Every time a change is detected, this node will trigger an execution. These executions will show up in the <a data-key='executions'>executions list</a>, but not in the editor."},"activationHint":"Once you’ve finished building your workflow, <a data-key='activate'>activate</a> it to have it also listen continuously (you just won’t see those executions here)."},"inputs":[],"outputs":["main"],"credentials":[{"name":"mqtt","required":true}],"properties":[{"displayName":"Topics","name":"topics","type":"string","default":"","description":"Topics to subscribe to, multiple can be defined with comma. Wildcard characters are supported (+ - for single level and # - for multi level). By default all subscription used QoS=0. To set a different QoS, write the QoS desired after the topic preceded by a colom. For Example: topicA:1,topicB:2"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"JSON Parse Body","name":"jsonParseBody","type":"boolean","default":false,"description":"Whether to try parse the message to an object"},{"displayName":"Only Message","name":"onlyMessage","type":"boolean","default":false,"description":"Whether to return only the message property"},{"displayName":"Parallel Processing","name":"parallelProcessing","type":"boolean","default":true,"description":"Whether to process messages in parallel or by keeping the message in order"}]}],"codex":{"categories":["Communication","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.mqtttrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/mqtt"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/MQTT/mqtt.svg"},
265
265
  {"displayName":"MSG91","name":"n8n-nodes-base.msg91","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Sends transactional SMS via MSG91","defaults":{"name":"MSG91"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"msg91Api","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"SMS","value":"sms"}],"default":"sms"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["sms"]}},"options":[{"name":"Send","value":"send","description":"Send SMS","action":"Send an SMS"}],"default":"send"},{"displayName":"Sender ID","name":"from","type":"string","default":"","placeholder":"4155238886","required":true,"displayOptions":{"show":{"operation":["send"],"resource":["sms"]}},"description":"The number from which to send the message"},{"displayName":"To","name":"to","type":"string","default":"","placeholder":"+14155238886","required":true,"displayOptions":{"show":{"operation":["send"],"resource":["sms"]}},"description":"The number, with coutry code, to which to send the message"},{"displayName":"Message","name":"message","type":"string","default":"","required":true,"displayOptions":{"show":{"operation":["send"],"resource":["sms"]}},"description":"The message to send"}],"codex":{"categories":["Communication","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.msg91/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/msg91"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Msg91/msg91.png"},
266
- {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.1,"description":"Get, add and update data in MySQL","version":1,"defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in database","action":"Insert rows in database"},{"name":"Update","value":"update","description":"Update rows in database","action":"Update rows in database"}],"default":"insert"},{"displayName":"Query","name":"query","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"displayOptions":{"show":{"operation":["executeQuery"]}},"default":"","placeholder":"SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchFilterRequired":false,"searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"show":{"operation":["insert"]}},"description":"Name of the table in which to insert data to"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["insert"]}},"requiresDataPath":"multiple","default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"},{"displayName":"Options","name":"options","type":"collection","displayOptions":{"show":{"operation":["insert"]}},"default":{},"placeholder":"Add modifiers","description":"Modifiers for INSERT statement","options":[{"displayName":"Ignore","name":"ignore","type":"boolean","default":true,"description":"Whether to ignore any ignorable errors that occur while executing the INSERT statement"},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement"}]},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchFilterRequired":false,"searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"show":{"operation":["update"]}},"description":"Name of the table in which to update data in"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"id","required":true,"description":"Name of the property which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"operation":["update"]}},"default":"","placeholder":"name,description","description":"Comma-separated list of the properties which should used as columns for rows to update"}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg"},
267
- {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.1,"description":"Get, add and update data in MySQL","version":[2,2.1],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute SQL","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed.","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg"},
268
- {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.1,"description":"Get, add and update data in MySQL","version":[2,2.1],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute SQL","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed.","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg","codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/mySql"}]}}},
266
+ {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in MySQL","version":1,"defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in database","action":"Insert rows in database"},{"name":"Update","value":"update","description":"Update rows in database","action":"Update rows in database"}],"default":"insert"},{"displayName":"Query","name":"query","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"displayOptions":{"show":{"operation":["executeQuery"]}},"default":"","placeholder":"SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchFilterRequired":false,"searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"show":{"operation":["insert"]}},"description":"Name of the table in which to insert data to"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["insert"]}},"requiresDataPath":"multiple","default":"","placeholder":"id,name,description","description":"Comma-separated list of the properties which should used as columns for the new rows"},{"displayName":"Options","name":"options","type":"collection","displayOptions":{"show":{"operation":["insert"]}},"default":{},"placeholder":"Add modifiers","description":"Modifiers for INSERT statement","options":[{"displayName":"Ignore","name":"ignore","type":"boolean","default":true,"description":"Whether to ignore any ignorable errors that occur while executing the INSERT statement"},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement"}]},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchFilterRequired":false,"searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"show":{"operation":["update"]}},"description":"Name of the table in which to update data in"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"id","required":true,"description":"Name of the property which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"operation":["update"]}},"default":"","placeholder":"name,description","description":"Comma-separated list of the properties which should used as columns for rows to update"}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg"},
267
+ {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in MySQL","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute SQL","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed.","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg"},
268
+ {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in MySQL","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute SQL","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed.","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg"},
269
+ {"displayName":"MySQL","name":"n8n-nodes-base.mySql","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in MySQL","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"MySQL"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"mySql","required":true,"testedBy":"mysqlConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute SQL","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Table...","typeOptions":{"searchListMethod":"searchTables","searchable":true}},{"displayName":"Name","name":"name","type":"string","placeholder":"table_name"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE id < 40","required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"MySQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed.","displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Below","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Connection Timeout","name":"connectionTimeoutMillis","type":"number","default":30,"description":"Number of milliseconds reserved for connecting to the database","typeOptions":{"minValue":1}},{"displayName":"Connections Limit","name":"connectionLimit","type":"number","default":10,"typeOptions":{"minValue":1},"description":"Maximum amount of connections to the database, setting high value can lead to performance issues and potential database crashes"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"description":"The way queries should be sent to the database","options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","placeholder":"e.g. value1,value2,value3","description":"Comma-separated list of the values you want to use as query parameters. You can drag the values from the input panel on the left. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/\" target=\"_blank\">More info</a>","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text","displayOptions":{"show":{"/operation":["select","executeQuery"]}}},{"displayName":"Priority","name":"priority","type":"options","options":[{"name":"Low Prioirity","value":"LOW_PRIORITY","description":"Delays execution of the INSERT until no other clients are reading from the table"},{"name":"High Priority","value":"HIGH_PRIORITY","description":"Overrides the effect of the --low-priority-updates option if the server was started with that option. It also causes concurrent inserts not to be used."}],"default":"LOW_PRIORITY","description":"Ignore any ignorable errors that occur while executing the INSERT statement","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}},{"displayName":"Select Distinct","name":"selectDistinct","type":"boolean","default":false,"description":"Whether to remove these duplicate rows","displayOptions":{"show":{"/operation":["select"]}}},{"displayName":"Output Query Execution Details","name":"detailedOutput","type":"boolean","default":false,"description":"Whether to show in output details of the ofexecuted query for each statement, or just confirmation of success"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/MySql/mysql.svg","codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mysql/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/mySql"}]}}},
269
270
  {"displayName":"n8n","name":"n8n-nodes-base.n8n","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Handle events and perform actions on your n8n instance","defaults":{"name":"n8n"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"n8nApi","required":true}],"requestDefaults":{"returnFullResponse":true,"baseURL":"={{ $credentials.baseUrl.replace(new RegExp(\"/$\"), \"\") }}","headers":{"Accept":"application/json","Content-Type":"application/json"}},"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Audit","value":"audit"},{"name":"Credential","value":"credential"},{"name":"Execution","value":"execution"},{"name":"Workflow","value":"workflow"}],"default":"workflow"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"get","displayOptions":{"show":{"resource":["audit"]}},"options":[{"name":"Generate","value":"generate","action":"Generate a security audit","description":"Generate a security audit for this n8n instance","routing":{"request":{"method":"POST","url":"/audit"}}}]},{"displayName":"Additional Options","name":"additionalOptions","type":"collection","placeholder":"Add Filter","displayOptions":{"show":{"resource":["audit"]}},"routing":{"request":{"body":{"additionalOptions":"={{ $value }}"}}},"default":{},"options":[{"displayName":"Categories","name":"categories","description":"Risk categories to include in the audit","type":"multiOptions","default":[],"options":[{"name":"Credentials","value":"credentials"},{"name":"Database","value":"database"},{"name":"Filesystem","value":"filesystem"},{"name":"Instance","value":"instance"},{"name":"Nodes","value":"nodes"}]},{"displayName":"Days Abandoned Workflow","name":"daysAbandonedWorkflow","description":"Days for a workflow to be considered abandoned if not executed","type":"number","default":90}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"create","displayOptions":{"show":{"resource":["credential"]}},"options":[{"name":"Create","value":"create","action":"Create a credential","routing":{"request":{"method":"POST","url":"/credentials"}}},{"name":"Delete","value":"delete","action":"Delete a credential","routing":{"request":{"method":"DELETE","url":"=/credentials/{{ $parameter.credentialId }}"}}},{"name":"Get Schema","value":"getSchema","action":"Get credential data schema for type","routing":{"request":{"method":"GET","url":"=/credentials/schema/{{ $parameter.credentialTypeName }}"}}}]},{"displayName":"Name","name":"name","type":"string","default":"","placeholder":"e.g. n8n account","required":true,"displayOptions":{"show":{"resource":["credential"],"operation":["create"]}},"routing":{"request":{"body":{"name":"={{ $value }}"}}},"description":"Name of the new credential"},{"displayName":"Credential Type","name":"credentialTypeName","type":"string","placeholder":"e.g. n8nApi","default":"","required":true,"displayOptions":{"show":{"resource":["credential"],"operation":["create"]}},"routing":{"request":{"body":{"type":"={{ $value }}"}}},"description":"The available types depend on nodes installed on the n8n instance. Some built-in types include e.g. 'githubApi', 'notionApi', and 'slackApi'."},{"displayName":"Data","name":"data","type":"json","default":"","placeholder":"// e.g. for n8nApi \n{\n \"apiKey\": \"my-n8n-api-key\",\n \"baseUrl\": \"https://<name>.app.n8n.cloud/api/v1\",\n}","required":true,"typeOptions":{"alwaysOpenEditWindow":true},"displayOptions":{"show":{"resource":["credential"],"operation":["create"]}},"routing":{"send":{"preSend":[null]}},"description":"A valid JSON object with properties required for this Credential Type. To see the expected format, you can use 'Get Schema' operation."},{"displayName":"Credential ID","name":"credentialId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["credential"],"operation":["delete"]}}},{"displayName":"Credential Type","name":"credentialTypeName","default":"","placeholder":"e.g. n8nApi","required":true,"type":"string","displayOptions":{"show":{"resource":["credential"],"operation":["getSchema"]}},"description":"The available types depend on nodes installed on the n8n instance. Some built-in types include e.g. 'githubApi', 'notionApi', and 'slackApi'."},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"getAll","displayOptions":{"show":{"resource":["execution"]}},"options":[{"name":"Get","value":"get","action":"Get an execution","routing":{"request":{"method":"GET","url":"=/executions/{{ $parameter.executionId }}"}}},{"name":"Get Many","value":"getAll","action":"Get many executions","routing":{"request":{"method":"GET","url":"/executions"},"send":{"paginate":true},"operations":{}}},{"name":"Delete","value":"delete","action":"Delete an execution","routing":{"request":{"method":"DELETE","url":"=/executions/{{ $parameter.executionId }}"}}}]},{"displayName":"Execution ID","name":"executionId","type":"string","required":true,"displayOptions":{"show":{"resource":["execution"],"operation":["delete"]}},"default":""},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"displayOptions":{"show":{"resource":["execution"],"operation":["getAll"]}},"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","default":100,"typeOptions":{"minValue":1,"maxValue":250},"displayOptions":{"show":{"resource":["execution"],"operation":["getAll"],"returnAll":[false]}},"routing":{"request":{"qs":{"limit":"={{ $value }}"}}},"description":"Max number of results to return"},{"displayName":"Filters","name":"filters","type":"collection","placeholder":"Add Filter","default":{},"displayOptions":{"show":{"resource":["execution"],"operation":["getAll"]}},"options":[{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"routing":{"send":{"type":"query","property":"workflowId","value":"={{ $value || undefined }}"}}},{"displayName":"Status","name":"status","type":"options","options":[{"name":"Error","value":"error"},{"name":"Success","value":"success"},{"name":"Waiting","value":"waiting"}],"default":"success","routing":{"send":{"type":"query","property":"status","value":"={{ $value }}"}},"description":"Status to filter the executions by"}]},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","displayOptions":{"show":{"resource":["execution"],"operation":["getAll"]}},"options":[{"displayName":"Include Execution Details","name":"activeWorkflows","type":"boolean","default":false,"routing":{"send":{"type":"query","property":"includeData","value":"={{ $value }}"}},"description":"Whether to include the detailed execution data"}]},{"displayName":"Execution ID","name":"executionId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["execution"],"operation":["get"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Option","displayOptions":{"show":{"resource":["execution"],"operation":["get"]}},"options":[{"displayName":"Include Execution Details","name":"activeWorkflows","type":"boolean","default":false,"routing":{"send":{"type":"query","property":"includeData","value":"={{ $value }}"}},"description":"Whether to include the detailed execution data"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"default":"getAll","displayOptions":{"show":{"resource":["workflow"]}},"options":[{"name":"Activate","value":"activate","action":"Activate a workflow"},{"name":"Create","value":"create","action":"Create a workflow","routing":{"request":{"method":"POST","url":"/workflows"}}},{"name":"Deactivate","value":"deactivate","action":"Deactivate a workflow"},{"name":"Delete","value":"delete","action":"Delete a workflow"},{"name":"Get","value":"get","action":"Get a workflow"},{"name":"Get Many","value":"getAll","action":"Get many workflows","routing":{"request":{"method":"GET","url":"/workflows"},"send":{"paginate":true},"operations":{}}},{"name":"Update","value":"update","action":"Update a workflow"}]},{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"required":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["activate"]}},"routing":{"request":{"method":"POST","url":"=/workflows/{{ $value }}/activate"}}},{"displayName":"Workflow Object","name":"workflowObject","type":"json","default":"{ \"name\": \"My workflow\", \"nodes\": [], \"connections\": {}, \"settings\": {} }","placeholder":"{\n \"name\": \"My workflow\",\n \"nodes\": [],\n \"connections\": {},\n \"settings\": {}\n}","required":true,"typeOptions":{"alwaysOpenEditWindow":true},"displayOptions":{"show":{"resource":["workflow"],"operation":["create"]}},"routing":{"send":{"preSend":[null,null]}},"description":"A valid JSON object with required fields: 'name', 'nodes', 'connections' and 'settings'. More information can be found in the <a href=\"https://docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows/post\">documentation</a>."},{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"required":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["deactivate"]}},"routing":{"request":{"method":"POST","url":"=/workflows/{{ $value }}/deactivate"}}},{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"required":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["delete"]}},"routing":{"request":{"method":"DELETE","url":"=/workflows/{{ $value }}"}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["getAll"]}},"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","default":100,"typeOptions":{"minValue":1,"maxValue":250},"displayOptions":{"show":{"resource":["workflow"],"operation":["getAll"],"returnAll":[false]}},"routing":{"request":{"qs":{"limit":"={{ $value }}"}}},"description":"Max number of results to return"},{"displayName":"Filters","name":"filters","type":"collection","default":{},"displayOptions":{"show":{"resource":["workflow"],"operation":["getAll"]}},"options":[{"displayName":"Return Only Active Workflows","name":"activeWorkflows","type":"boolean","default":true,"routing":{"request":{"qs":{"active":"={{ $value }}"}}}},{"displayName":"Tags","name":"tags","type":"string","default":"","routing":{"send":{"type":"query","property":"tags","value":"={{ $value !== \"\" ? $value : undefined }}"}},"description":"Include only workflows with these tags","hint":"Comma separated list of tags (empty value is ignored)"}]},{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"required":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["get"]}},"routing":{"request":{"method":"GET","url":"=/workflows/{{ $value }}"}}},{"displayName":"Workflow","name":"workflowId","type":"resourceLocator","default":{"mode":"list","value":""},"description":"Workflow to filter the executions by","modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a Workflow...","initType":"workflow","typeOptions":{"searchListMethod":"searchWorkflows","searchFilterRequired":false,"searchable":true}},{"displayName":"By URL","name":"url","type":"string","placeholder":"https://myinstance.app.n8n.cloud/workflow/1","validation":[{"type":"regex","properties":{"regex":".*/workflow/([0-9a-zA-Z]{1,})","errorMessage":"Not a valid Workflow URL"}}],"extractValue":{"type":"regex","regex":".*/workflow/([0-9a-zA-Z]{1,})"}},{"displayName":"ID","name":"id","type":"string","validation":[{"type":"regex","properties":{"regex":"[0-9a-zA-Z]{1,}","errorMessage":"Not a valid Workflow ID"}}],"placeholder":"1"}],"required":true,"displayOptions":{"show":{"resource":["workflow"],"operation":["update"]}},"routing":{"request":{"method":"PUT","url":"=/workflows/{{ $value }}"}}},{"displayName":"Workflow Object","name":"workflowObject","type":"json","default":"","placeholder":"{\n \"name\": \"My workflow\",\n \"nodes\": [],\n \"connections\": {},\n \"settings\": {}\n}","required":true,"typeOptions":{"alwaysOpenEditWindow":true},"displayOptions":{"show":{"resource":["workflow"],"operation":["update"]}},"routing":{"send":{"preSend":[null,null]}},"description":"A valid JSON object with required fields: 'name', 'nodes', 'connections' and 'settings'. More information can be found in the <a href=\"https://docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows~1%7Bid%7D/put\">documentation</a>."}],"codex":{"categories":["Development","Core Nodes"],"subcategories":{"Core Nodes":["Helpers","Flow","Other Trigger Nodes"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.n8n/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/api/authentication/"}]},"alias":["Workflow","Execution"]},"iconUrl":"icons/n8n-nodes-base/dist/nodes/N8n/n8n.svg"},
270
271
  {"displayName":"Customer Datastore (n8n training)","name":"n8n-nodes-base.n8nTrainingCustomerDatastore","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"]}}","description":"Dummy node used for n8n training","defaults":{"name":"Customer Datastore (n8n training)"},"inputs":["main"],"outputs":["main"],"properties":[{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Get One Person","value":"getOnePerson"},{"name":"Get All People","value":"getAllPeople"}],"default":"getOnePerson"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAllPeople"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAllPeople"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":10},"default":5,"description":"Max number of results to return"}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/N8nTrainingCustomerDatastore/n8nTrainingCustomerDatastore.svg"},
271
272
  {"displayName":"Customer Messenger (n8n training)","name":"n8n-nodes-base.n8nTrainingCustomerMessenger","group":["transform"],"version":1,"description":"Dummy node used for n8n training","defaults":{"name":"Customer Messenger (n8n training)"},"inputs":["main"],"outputs":["main"],"properties":[{"displayName":"Customer ID","name":"customerId","type":"string","required":true,"default":""},{"displayName":"Message","name":"message","type":"string","required":true,"typeOptions":{"rows":4},"default":""}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/N8nTrainingCustomerMessenger/n8nTrainingCustomerMessenger.svg"},
@@ -303,10 +304,11 @@
303
304
  {"displayName":"Pipedrive Trigger","name":"n8n-nodes-base.pipedriveTrigger","group":["trigger"],"version":1,"description":"Starts the workflow when Pipedrive events occur","defaults":{"name":"Pipedrive Trigger"},"inputs":[],"outputs":["main"],"credentials":[{"name":"pipedriveApi","required":true,"displayOptions":{"show":{"authentication":["apiToken"]}}},{"name":"pipedriveOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}},{"name":"httpBasicAuth","required":true,"displayOptions":{"show":{"incomingAuthentication":["basicAuth"]}}}],"webhooks":[{"name":"default","httpMethod":"POST","responseMode":"onReceived","path":"webhook"}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"API Token","value":"apiToken"},{"name":"OAuth2","value":"oAuth2"}],"default":"apiToken"},{"displayName":"Incoming Authentication","name":"incomingAuthentication","type":"options","options":[{"name":"Basic Auth","value":"basicAuth"},{"name":"None","value":"none"}],"default":"none","description":"If authentication should be activated for the webhook (makes it more secure)"},{"displayName":"Action","name":"action","type":"options","options":[{"name":"Added","value":"added","description":"Data got added","action":"Data was added"},{"name":"All","value":"*","description":"Any change","action":"Any change"},{"name":"Deleted","value":"deleted","description":"Data got deleted","action":"Data was deleted"},{"name":"Merged","value":"merged","description":"Data got merged","action":"Data was merged"},{"name":"Updated","value":"updated","description":"Data got updated","action":"Data was updated"}],"default":"*","description":"Type of action to receive notifications about"},{"displayName":"Object","name":"object","type":"options","options":[{"name":"Activity","value":"activity"},{"name":"Activity Type","value":"activityType"},{"name":"All","value":"*"},{"name":"Deal","value":"deal"},{"name":"Note","value":"note"},{"name":"Organization","value":"organization"},{"name":"Person","value":"person"},{"name":"Pipeline","value":"pipeline"},{"name":"Product","value":"product"},{"name":"Stage","value":"stage"},{"name":"User","value":"user"}],"default":"*","description":"Type of object to receive notifications about"}],"codex":{"categories":["Sales"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.pipedrivetrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/pipedrive"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Pipedrive/pipedrive.svg"},
304
305
  {"displayName":"Plivo","name":"n8n-nodes-base.plivo","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Send SMS/MMS messages or make phone calls","defaults":{"name":"Plivo"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"plivoApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Call","value":"call"},{"name":"MMS","value":"mms"},{"name":"SMS","value":"sms"}],"default":"sms","required":true},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["sms"]}},"options":[{"name":"Send","value":"send","description":"Send an SMS message","action":"Send an SMS"}],"default":"send"},{"displayName":"From","name":"from","type":"string","default":"","description":"Plivo Number to send the SMS from","placeholder":"+14156667777","required":true,"displayOptions":{"show":{"resource":["sms"],"operation":["send"]}}},{"displayName":"To","name":"to","type":"string","default":"","description":"Phone number to send the message to","placeholder":"+14156667778","required":true,"displayOptions":{"show":{"resource":["sms"],"operation":["send"]}}},{"displayName":"Message","name":"message","type":"string","default":"","description":"Message to send","required":true,"displayOptions":{"show":{"operation":["send"],"resource":["sms"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["mms"]}},"options":[{"name":"Send","value":"send","description":"Send an MMS message (US/Canada only)","action":"Send an MMS"}],"default":"send"},{"displayName":"From","name":"from","type":"string","default":"","description":"Plivo Number to send the MMS from","placeholder":"+14156667777","required":true,"displayOptions":{"show":{"resource":["mms"],"operation":["send"]}}},{"displayName":"To","name":"to","type":"string","default":"","description":"Phone number to send the MMS to","placeholder":"+14156667778","required":true,"displayOptions":{"show":{"operation":["send"],"resource":["mms"]}}},{"displayName":"Message","name":"message","type":"string","default":"","description":"Message to send","displayOptions":{"show":{"resource":["mms"],"operation":["send"]}}},{"displayName":"Media URLs","name":"media_urls","type":"string","default":"","displayOptions":{"show":{"resource":["mms"],"operation":["send"]}},"description":"Comma-separated list of media URLs of the files from your file server"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["call"]}},"options":[{"name":"Make","value":"make","description":"Make a voice call","action":"Make a call"}],"default":"make"},{"displayName":"From","name":"from","type":"string","default":"","placeholder":"+14156667777","description":"Caller ID for the call to make","required":true,"displayOptions":{"show":{"resource":["call"],"operation":["make"]}}},{"displayName":"To","name":"to","type":"string","default":"","placeholder":"+14156667778","required":true,"description":"Phone number to make the call to","displayOptions":{"show":{"resource":["call"],"operation":["make"]}}},{"displayName":"Answer Method","name":"answer_method","type":"options","required":true,"description":"HTTP verb to be used when invoking the Answer URL","default":"POST","options":[{"name":"GET","value":"GET"},{"name":"POST","value":"POST"}],"displayOptions":{"show":{"resource":["call"],"operation":["make"]}}},{"displayName":"Answer URL","name":"answer_url","type":"string","default":"","description":"URL to be invoked by Plivo once the call is answered. It should return the XML to handle the call once answered.","required":true,"displayOptions":{"show":{"resource":["call"],"operation":["make"]}}}],"codex":{"categories":["Communication","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.plivo/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/plivo"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Plivo/plivo.svg"},
305
306
  {"displayName":"PostBin","name":"n8n-nodes-base.postBin","group":["transform"],"version":1,"subtitle":"={{ $parameter[\"operation\"] + \": \" + $parameter[\"resource\"] }}","description":"Consume PostBin API","defaults":{"name":"PostBin"},"inputs":["main"],"outputs":["main"],"credentials":[],"requestDefaults":{"baseURL":"https://www.toptal.com"},"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Bin","value":"bin"},{"name":"Request","value":"request"}],"default":"bin","required":true},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["bin"]}},"options":[{"name":"Create","value":"create","description":"Create bin","routing":{"request":{"method":"POST","url":"/developers/postbin/api/bin"},"output":{"postReceive":[null]}},"action":"Create a bin"},{"name":"Get","value":"get","description":"Get a bin","routing":{"request":{"method":"GET"},"output":{"postReceive":[null]},"send":{"preSend":[null]}},"action":"Get a bin"},{"name":"Delete","value":"delete","description":"Delete a bin","routing":{"request":{"method":"DELETE"},"send":{"preSend":[null]}},"action":"Delete a bin"}],"default":"create"},{"displayName":"Bin ID","name":"binId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["bin"],"operation":["get","delete"]}},"description":"Unique identifier for each bin"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["request"]}},"options":[{"name":"Get","value":"get","description":"Get a request","routing":{"request":{"method":"GET","url":"=/developers/postbin/api/bin/{{$parameter[\"binId\"]}}/req/{{$parameter[\"requestId\"]}}"},"send":{"preSend":[null]}},"action":"Get a request"},{"name":"Remove First","value":"removeFirst","description":"Remove the first request from bin","routing":{"request":{"method":"GET","url":"=/developers/postbin/api/bin/{{$parameter[\"binId\"]}}/req/shift"},"send":{"preSend":[null]}},"action":"Remove First a request"},{"name":"Send","value":"send","description":"Send a test request to the bin","routing":{"request":{"method":"POST"},"send":{"preSend":[null]},"output":{"postReceive":[{"type":"set","properties":{"value":"={{ { \"requestId\": $response.body } }}"}}]}},"action":"Send a request"}],"default":"get"},{"displayName":"Bin ID","name":"binId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["request"],"operation":["get","removeFirst","send"]}},"description":"Unique identifier for each bin"},{"displayName":"Bin Content","name":"binContent","type":"string","default":"","typeOptions":{"rows":5},"displayOptions":{"show":{"resource":["request"],"operation":["send"]}},"routing":{"send":{"property":"content","type":"body"}}},{"displayName":"Request ID","name":"requestId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["request"],"operation":["get"]}},"description":"Unique identifier for each request"}],"codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postbin/"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/PostBin/postbin.svg"},
306
- {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in Postgres","version":1,"defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in database","action":"Insert rows in database"},{"name":"Update","value":"update","description":"Update rows in database","action":"Update rows in database"}],"default":"insert"},{"displayName":"Query","name":"query","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"displayOptions":{"show":{"operation":["executeQuery"]}},"default":"","placeholder":"SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","required":true,"description":"The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters."},{"displayName":"Schema","name":"schema","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"public","required":true,"description":"Name of the schema the table belongs to"},{"displayName":"Table","name":"table","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"","required":true,"description":"Name of the table in which to insert data to"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"","placeholder":"id:int,name:text,description","description":"Comma-separated list of the properties which should used as columns for the new rows. You can use type casting with colons (:) like id:int."},{"displayName":"Schema","name":"schema","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"public","description":"Name of the schema the table belongs to"},{"displayName":"Table","name":"table","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"","required":true,"description":"Name of the table in which to update data in"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"id","required":true,"description":"Comma-separated list of the properties which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"","placeholder":"name:text,description","description":"Comma-separated list of the properties which should used as columns for rows to update. You can use type casting with colons (:) like id:int."},{"displayName":"Return Fields","name":"returnFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"operation":["insert","update"]}},"default":"*","description":"Comma-separated list of the fields that the operation will return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"options":[{"displayName":"Mode","name":"mode","type":"options","options":[{"name":"Independently","value":"independently","description":"Execute each query independently"},{"name":"Multiple Queries","value":"multiple","description":"<b>Default</b>. Sends multiple queries at once to database."},{"name":"Transaction","value":"transaction","description":"Executes all queries in a single transaction"}],"default":"multiple","description":"The way queries should be sent to database. Can be used in conjunction with <b>Continue on Fail</b>. See <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/\">the docs</a> for more examples"},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Query Parameters","name":"queryParams","type":"string","displayOptions":{"show":{"/operation":["executeQuery"]}},"default":"","placeholder":"quantity,price","description":"Comma-separated list of properties which should be used as query parameters"}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
307
- {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
308
- {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
309
- {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.2,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg","codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/postgres"}]}}},
307
+ {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.3,"description":"Get, add and update data in Postgres","version":1,"defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"<strong>New node version available:</strong> get the latest version with added features from the nodes panel.","name":"oldVersionNotice","type":"notice","default":""},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in database","action":"Insert rows in database"},{"name":"Update","value":"update","description":"Update rows in database","action":"Update rows in database"}],"default":"insert"},{"displayName":"Query","name":"query","type":"string","noDataExpression":true,"typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"displayOptions":{"show":{"operation":["executeQuery"]}},"default":"","placeholder":"SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","required":true,"description":"The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters."},{"displayName":"Schema","name":"schema","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"public","required":true,"description":"Name of the schema the table belongs to"},{"displayName":"Table","name":"table","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"","required":true,"description":"Name of the table in which to insert data to"},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["insert"]}},"default":"","placeholder":"id:int,name:text,description","description":"Comma-separated list of the properties which should used as columns for the new rows. You can use type casting with colons (:) like id:int."},{"displayName":"Schema","name":"schema","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"public","description":"Name of the schema the table belongs to"},{"displayName":"Table","name":"table","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"","required":true,"description":"Name of the table in which to update data in"},{"displayName":"Update Key","name":"updateKey","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"id","required":true,"description":"Comma-separated list of the properties which decides which rows in the database should be updated. Normally that would be \"id\"."},{"displayName":"Columns","name":"columns","type":"string","displayOptions":{"show":{"operation":["update"]}},"default":"","placeholder":"name:text,description","description":"Comma-separated list of the properties which should used as columns for rows to update. You can use type casting with colons (:) like id:int."},{"displayName":"Return Fields","name":"returnFields","type":"string","requiresDataPath":"multiple","displayOptions":{"show":{"operation":["insert","update"]}},"default":"*","description":"Comma-separated list of the fields that the operation will return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"options":[{"displayName":"Mode","name":"mode","type":"options","options":[{"name":"Independently","value":"independently","description":"Execute each query independently"},{"name":"Multiple Queries","value":"multiple","description":"<b>Default</b>. Sends multiple queries at once to database."},{"name":"Transaction","value":"transaction","description":"Executes all queries in a single transaction"}],"default":"multiple","description":"The way queries should be sent to database. Can be used in conjunction with <b>Continue on Fail</b>. See <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/\">the docs</a> for more examples"},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Query Parameters","name":"queryParams","type":"string","displayOptions":{"show":{"/operation":["executeQuery"]}},"default":"","placeholder":"quantity,price","description":"Comma-separated list of properties which should be used as query parameters"}]}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
308
+ {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.3,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2,2.3],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
309
+ {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.3,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2,2.3],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
310
+ {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.3,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2,2.3],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
311
+ {"displayName":"Postgres","name":"n8n-nodes-base.postgres","group":["input"],"defaultVersion":2.3,"description":"Get, add and update data in Postgres","version":[2,2.1,2.2,2.3],"subtitle":"={{ $parameter[\"operation\"] }}","defaults":{"name":"Postgres"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postgres","required":true,"testedBy":"postgresConnectionTest"}],"properties":[{"displayName":"Resource","name":"resource","type":"hidden","noDataExpression":true,"options":[{"name":"Database","value":"database"}],"default":"database"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Delete","value":"deleteTable","description":"Delete an entire table or rows in a table","action":"Delete table or rows"},{"name":"Execute Query","value":"executeQuery","description":"Execute an SQL query","action":"Execute a SQL query"},{"name":"Insert","value":"insert","description":"Insert rows in a table","action":"Insert rows in a table"},{"name":"Insert or Update","value":"upsert","description":"Insert or update rows in a table","action":"Insert or update rows in a table"},{"name":"Select","value":"select","description":"Select rows from a table","action":"Select rows from a table"},{"name":"Update","value":"update","description":"Update rows in a table","action":"Update rows in a table"}],"displayOptions":{"show":{"resource":["database"]}},"default":"insert"},{"displayName":"Schema","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"placeholder":"e.g. public","description":"The schema that contains the table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"schemaSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Table","name":"table","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"description":"The table you want to work on","modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"tableSearch"}},{"displayName":"By Name","name":"name","type":"string"}],"displayOptions":{"hide":{"operation":["executeQuery"]}}},{"displayName":"Command","name":"deleteCommand","type":"options","default":"truncate","options":[{"name":"Truncate","value":"truncate","description":"Only removes the table's data and preserves the table's structure"},{"name":"Delete","value":"delete","description":"Delete the rows that match the 'Select Rows' conditions below. If no selection is made, all rows in the table are deleted."},{"name":"Drop","value":"drop","description":"Deletes the table's data and also the table's structure permanently"}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Restart Sequences","name":"restartSequences","type":"boolean","default":false,"description":"Whether to reset identity (auto-increment) columns to their initial values","displayOptions":{"show":{"deleteCommand":["truncate"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"deleteCommand":["delete"],"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["deleteTable"]},"hide":{"table":[""]}}},{"displayName":"Query","name":"query","type":"string","default":"","placeholder":"e.g. SELECT id, name FROM product WHERE quantity > $1 AND price <= $2","noDataExpression":true,"required":true,"description":"The SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below.","typeOptions":{"editor":"sqlEditor","sqlDialect":"PostgreSQL"},"hint":"Consider using query parameters to prevent SQL injection attacks. Add them in the options below","displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["executeQuery"]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","default":{"mappingMode":"defineBelow","value":null},"noDataExpression":true,"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"add","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["insert"]},"hide":{"table":[""]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Limit","name":"limit","type":"number","default":50,"description":"Max number of results to return","typeOptions":{"minValue":1},"displayOptions":{"show":{"returnAll":[false],"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Select Rows","name":"where","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Condition","default":{},"description":"If not set, all rows will be selected","options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","placeholder":"e.g. ID","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Operator","name":"condition","type":"options","description":"The operator to check the column against. When using 'LIKE' operator percent sign ( %) matches zero or more characters, underscore ( _ ) matches any single character.","options":[{"name":"Equal","value":"equal"},{"name":"Not Equal","value":"!="},{"name":"Like","value":"LIKE"},{"name":"Greater Than","value":">"},{"name":"Less Than","value":"<"},{"name":"Greater Than Or Equal","value":">="},{"name":"Less Than Or Equal","value":"<="},{"name":"Is Null","value":"IS NULL"}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Combine Conditions","name":"combineConditions","type":"options","description":"How to combine the conditions defined in \"Select Rows\": AND requires all conditions to be true, OR requires at least one condition to be true","options":[{"name":"AND","value":"AND","description":"Only rows that meet all the conditions are selected"},{"name":"OR","value":"OR","description":"Rows that meet at least one condition are selected"}],"default":"AND","displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Sort","name":"sort","type":"fixedCollection","typeOptions":{"multipleValues":true},"placeholder":"Add Sort Rule","default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","default":"","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}},{"displayName":"Direction","name":"direction","type":"options","options":[{"name":"ASC","value":"ASC"},{"name":"DESC","value":"DESC"}],"default":"ASC"}]}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["select"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Column to Match On","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"The column that identifies the row(s) to modify","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Value of Column to Match On","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"update","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["update"]},"hide":{"table":[""]}}},{"displayName":"Data Mode","name":"dataMode","type":"options","options":[{"name":"Auto-Map Input Data to Columns","value":"autoMapInputData","description":"Use when node input properties names exactly match the table column names"},{"name":"Map Each Column Manually","value":"defineBelow","description":"Set the value for each destination column manually"}],"default":"autoMapInputData","description":"Whether to map node input properties and the table data automatically or manually","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"\n\t\tIn this mode, make sure incoming data fields are named the same as the columns in your table. If needed, use a 'Set' node before this node to change the field names.\n\t\t","name":"notice","type":"notice","default":"","displayOptions":{"show":{"dataMode":["autoMapInputData"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Unique Column","name":"columnToMatchOn","type":"options","required":true,"description":"The column to compare when finding the rows to update. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>.","typeOptions":{"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]},"default":"","hint":"Used to find the correct row(s) to update. Doesn't get changed. Has to be unique.","displayOptions":{"show":{"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Value of Unique Column","name":"valueToMatchOn","type":"string","default":"","description":"Rows with a value in the specified \"Column to Match On\" that corresponds to the value in this field will be updated. New rows will be created for non-matching items.","displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Values to Send","name":"valuesToSend","placeholder":"Add Value","type":"fixedCollection","typeOptions":{"multipleValueButtonText":"Add Value","multipleValues":true},"displayOptions":{"show":{"dataMode":["defineBelow"],"@version":[2,2.1],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}},"default":{},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Column","name":"column","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsWithoutColumnToMatchOn","loadOptionsDependsOn":["schema.value","table.value"]},"default":[]},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Columns","name":"columns","type":"resourceMapper","noDataExpression":true,"default":{"mappingMode":"defineBelow","value":null},"required":true,"typeOptions":{"loadOptionsDependsOn":["table.value","operation"],"resourceMapper":{"resourceMapperMethod":"getMappingColumns","mode":"upsert","fieldWords":{"singular":"column","plural":"columns"},"addAllFields":true,"multiKeyMatch":true}},"displayOptions":{"show":{"@version":[2.2],"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Cascade","name":"cascade","type":"boolean","default":false,"description":"Whether to drop all objects that depend on the table, such as views and sequences","displayOptions":{"show":{"/operation":["deleteTable"]},"hide":{"/deleteCommand":["delete"]}}},{"displayName":"Connection Timeout","name":"connectionTimeout","type":"number","default":30,"description":"Number of seconds reserved for connecting to the database"},{"displayName":"Query Batching","name":"queryBatching","type":"options","noDataExpression":true,"options":[{"name":"Single Query","value":"single","description":"A single query for all incoming items"},{"name":"Independently","value":"independently","description":"Execute one query per incoming item of the run"},{"name":"Transaction","value":"transaction","description":"Execute all queries in a transaction, if a failure occurs, all changes are rolled back"}],"default":"single","description":"The way queries should be sent to the database"},{"displayName":"Query Parameters","name":"queryReplacement","type":"string","default":"","description":"Comma-separated list of the values you want to use as query parameters. <a href=\"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/#use-query-parameters\" target=\"_blank\">More info</a>.","hint":"Comma-separated list of values: reference them in your query as $1, $2, $3…","placeholder":"e.g. value1,value2,value3","displayOptions":{"show":{"/operation":["executeQuery"]}}},{"displayName":"Output Columns","name":"outputColumns","type":"multiOptions","description":"Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\" target=\"_blank\">expression</a>","typeOptions":{"loadOptionsMethod":"getColumnsMultiOptions","loadOptionsDependsOn":["table.value"]},"default":[],"displayOptions":{"show":{"/operation":["select","insert","update","upsert"]}}},{"displayName":"Output Large-Format Numbers As","name":"largeNumbersOutput","type":"options","options":[{"name":"Numbers","value":"numbers"},{"name":"Text","value":"text","description":"Use this if you expect numbers longer than 16 digits (otherwise numbers may be incorrect)"}],"hint":"Applies to NUMERIC and BIGINT columns only","default":"text"},{"displayName":"Skip on Conflict","name":"skipOnConflict","type":"boolean","default":false,"description":"Whether to skip the row and do not throw error if a unique constraint or exclusion constraint is violated","displayOptions":{"show":{"/operation":["insert"]}}},{"displayName":"Replace Empty Strings with NULL","name":"replaceEmptyStrings","type":"boolean","default":false,"description":"Whether to replace empty strings with NULL in input, could be useful when data come from spreadsheet","displayOptions":{"show":{"/operation":["insert","update","upsert","executeQuery"]}}}],"displayOptions":{"show":{"resource":["database"],"operation":["upsert"]},"hide":{"table":[""]}}}],"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg","codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.postgres/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/postgres"}]}}},
310
312
  {"displayName":"Postgres Trigger","name":"n8n-nodes-base.postgresTrigger","group":["trigger"],"version":1,"description":"Listens to Postgres messages","eventTriggerDescription":"","defaults":{"name":"Postgres Trigger"},"triggerPanel":{"header":"","executionsHelp":{"inactive":"<b>While building your workflow</b>, click the 'listen' button, then trigger a Postgres event. This will trigger an execution, which will show up in this editor.<br /> <br /><b>Once you're happy with your workflow</b>, <a data-key='activate'>activate</a> it. Then every time a change is detected, the workflow will execute. These executions will show up in the <a data-key='executions'>executions list</a>, but not in the editor.","active":"<b>While building your workflow</b>, click the 'listen' button, then trigger a Postgres event. This will trigger an execution, which will show up in this editor.<br /> <br /><b>Your workflow will also execute automatically</b>, since it's activated. Every time a change is detected, this node will trigger an execution. These executions will show up in the <a data-key='executions'>executions list</a>, but not in the editor."},"activationHint":"Once you've finished building your workflow, <a data-key='activate'>activate</a> it to have it also listen continuously (you just won't see those executions here)."},"inputs":[],"outputs":["main"],"credentials":[{"name":"postgres","required":true}],"properties":[{"displayName":"Listen For","name":"triggerMode","type":"options","options":[{"name":"Table Row Change Events","value":"createTrigger","description":"Insert, update or delete"},{"name":"Advanced","value":"listenTrigger","description":"Listen to existing Postgres channel"}],"default":"createTrigger"},{"displayName":"Schema Name","name":"schema","type":"resourceLocator","default":{"mode":"list","value":"public"},"required":true,"displayOptions":{"show":{"triggerMode":["createTrigger"]}},"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a schema","typeOptions":{"searchListMethod":"searchSchema","searchFilterRequired":false}},{"displayName":"Name","name":"name","type":"string","placeholder":"e.g. public"}]},{"displayName":"Table Name","name":"tableName","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"displayOptions":{"show":{"triggerMode":["createTrigger"]}},"modes":[{"displayName":"From List","name":"list","type":"list","placeholder":"Select a table","typeOptions":{"searchListMethod":"searchTables","searchFilterRequired":false}},{"displayName":"Name","name":"name","type":"string","placeholder":"e.g. table_name"}]},{"displayName":"Channel Name","name":"channelName","type":"string","default":"","required":true,"placeholder":"e.g. n8n_channel","description":"Name of the channel to listen to","displayOptions":{"show":{"triggerMode":["listenTrigger"]}}},{"displayName":"Event to listen for","name":"firesOn","type":"options","displayOptions":{"show":{"triggerMode":["createTrigger"]}},"options":[{"name":"Insert","value":"INSERT"},{"name":"Update","value":"UPDATE"},{"name":"Delete","value":"DELETE"}],"default":"INSERT"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"triggerMode":["createTrigger"]}},"options":[{"displayName":"Channel Name","name":"channelName","type":"string","placeholder":"e.g. n8n_channel","description":"Name of the channel to listen to","default":""},{"displayName":"Function Name","name":"functionName","type":"string","description":"Name of the function to create","placeholder":"e.g. n8n_trigger_function()","default":""},{"displayName":"Replace if Exists","name":"replaceIfExists","type":"boolean","description":"Whether to replace an existing function and trigger with the same name","default":false},{"displayName":"Trigger Name","name":"triggerName","type":"string","description":"Name of the trigger to create","placeholder":"e.g. n8n_trigger","default":""}]}],"codex":{"categories":["Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.postgrestrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/postgres"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postgres/postgres.svg"},
311
313
  {"displayName":"PostHog","name":"n8n-nodes-base.postHog","group":["input"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume PostHog API","defaults":{"name":"PostHog"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"postHogApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Alias","value":"alias"},{"name":"Event","value":"event"},{"name":"Identity","value":"identity"},{"name":"Track","value":"track"}],"default":"event"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["alias"]}},"options":[{"name":"Create","value":"create","description":"Create an alias","action":"Create an alias"}],"default":"create"},{"displayName":"Alias","name":"alias","type":"string","required":true,"displayOptions":{"show":{"resource":["alias"],"operation":["create"]}},"default":"","description":"The name of the alias"},{"displayName":"Distinct ID","name":"distinctId","type":"string","required":true,"displayOptions":{"show":{"resource":["alias"],"operation":["create"]}},"default":"","description":"The user's distinct ID"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["alias"],"operation":["create"]}},"default":{},"options":[{"displayName":"Context","name":"contextUi","type":"fixedCollection","placeholder":"Add Property","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Context","name":"contextValues","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Timestamp","name":"timestamp","type":"dateTime","default":"","description":"If not set, it'll automatically be set to the current time"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["event"]}},"options":[{"name":"Create","value":"create","description":"Create an event","action":"Create an event"}],"default":"create"},{"displayName":"Event","name":"eventName","type":"string","required":true,"displayOptions":{"show":{"resource":["event"],"operation":["create"]}},"default":"","description":"The name of the event"},{"displayName":"Distinct ID","name":"distinctId","type":"string","required":true,"displayOptions":{"show":{"resource":["event"],"operation":["create"]}},"default":"","description":"The user's distinct ID"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["event"],"operation":["create"]}},"default":{},"options":[{"displayName":"Properties","name":"propertiesUi","type":"fixedCollection","placeholder":"Add Property","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"propertyValues","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Timestamp","name":"timestamp","type":"dateTime","default":"","description":"If not set, it'll automatically be set to the current time"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["identity"]}},"options":[{"name":"Create","value":"create","action":"Create an identity"}],"default":"create"},{"displayName":"Distinct ID","name":"distinctId","type":"string","required":true,"displayOptions":{"show":{"resource":["identity"],"operation":["create"]}},"default":"","description":"The identity's distinct ID"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["identity"],"operation":["create"]}},"default":{},"options":[{"displayName":"Properties","name":"propertiesUi","type":"fixedCollection","placeholder":"Add Property","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"propertyValues","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Message ID","name":"messageId","type":"string","default":""},{"displayName":"Timestamp","name":"timestamp","type":"dateTime","default":"","description":"If not set, it'll automatically be set to the current time"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["track"]}},"options":[{"name":"Page","value":"page","description":"Track a page","action":"Track a page"},{"name":"Screen","value":"screen","description":"Track a screen","action":"Track a screen"}],"default":"page"},{"displayName":"Name","name":"name","type":"string","required":true,"displayOptions":{"show":{"resource":["track"],"operation":["page","screen"]}},"default":""},{"displayName":"Distinct ID","name":"distinctId","type":"string","required":true,"displayOptions":{"show":{"resource":["track"],"operation":["page","screen"]}},"default":"","description":"The user's distinct ID"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["track"],"operation":["page","screen"]}},"default":{},"options":[{"displayName":"Category","name":"category","type":"string","default":""},{"displayName":"Context","name":"contextUi","type":"fixedCollection","placeholder":"Add Property","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Context","name":"contextValues","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Message ID","name":"messageId","type":"string","default":""},{"displayName":"Properties","name":"propertiesUi","type":"fixedCollection","placeholder":"Add Property","default":{},"typeOptions":{"multipleValues":true},"options":[{"displayName":"Property","name":"propertyValues","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Timestamp","name":"timestamp","type":"dateTime","default":"","description":"If not set, it'll automatically be set to the current time"}]}],"codex":{"categories":["Analytics","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.posthog/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/postHog"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/PostHog/postHog.svg"},
312
314
  {"displayName":"Postmark Trigger","name":"n8n-nodes-base.postmarkTrigger","group":["trigger"],"version":1,"description":"Starts the workflow when Postmark events occur","defaults":{"name":"Postmark Trigger"},"inputs":[],"outputs":["main"],"credentials":[{"name":"postmarkApi","required":true}],"webhooks":[{"name":"default","httpMethod":"POST","responseMode":"onReceived","path":"webhook"}],"properties":[{"displayName":"Events","name":"events","type":"multiOptions","options":[{"name":"Bounce","value":"bounce","description":"Trigger on bounce"},{"name":"Click","value":"click","description":"Trigger on click"},{"name":"Delivery","value":"delivery","description":"Trigger on delivery"},{"name":"Open","value":"open","description":"Trigger webhook on open"},{"name":"Spam Complaint","value":"spamComplaint","description":"Trigger on spam complaint"},{"name":"Subscription Change","value":"subscriptionChange","description":"Trigger on subscription change"}],"default":[],"required":true,"description":"Webhook events that will be enabled for that endpoint"},{"displayName":"First Open","name":"firstOpen","description":"Only fires on first open for event \"Open\"","type":"boolean","default":false,"displayOptions":{"show":{"events":["open"]}}},{"displayName":"Include Content","name":"includeContent","description":"Whether to include message content for events \"Bounce\" and \"Spam Complaint\"","type":"boolean","default":false,"displayOptions":{"show":{"events":["bounce","spamComplaint"]}}}],"codex":{"categories":["Communication","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.postmarktrigger/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/postmark"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Postmark/postmark.png"},
@@ -331,7 +333,7 @@
331
333
  {"displayName":"Rename Keys","name":"n8n-nodes-base.renameKeys","icon":"fa:edit","group":["transform"],"version":1,"description":"Renames keys","defaults":{"name":"Rename Keys","color":"#772244"},"inputs":["main"],"outputs":["main"],"properties":[{"displayName":"Keys","name":"keys","placeholder":"Add new key","description":"Adds a key which should be renamed","type":"fixedCollection","typeOptions":{"multipleValues":true,"sortable":true},"default":{},"options":[{"displayName":"Key","name":"key","values":[{"displayName":"Current Key Name","name":"currentKey","type":"string","default":"","placeholder":"currentKey","requiresDataPath":"single","description":"The current name of the key. It is also possible to define deep keys by using dot-notation like for example: \"level1.level2.currentKey\"."},{"displayName":"New Key Name","name":"newKey","type":"string","default":"","placeholder":"newKey","description":"The name the key should be renamed to. It is also possible to define deep keys by using dot-notation like for example: \"level1.level2.newKey\"."}]}]},{"displayName":"Additional Options","name":"additionalOptions","type":"collection","default":{},"placeholder":"Add Option","options":[{"displayName":"Regex","name":"regexReplacement","placeholder":"Add new regular expression","description":"Adds a regular expressiond","type":"fixedCollection","typeOptions":{"multipleValues":true,"sortable":true},"default":{},"options":[{"displayName":"Replacement","name":"replacements","values":[{"displayName":"Be aware that by using regular expression previously renamed keys can be affected","name":"regExNotice","type":"notice","default":""},{"displayName":"Regular Expression","name":"searchRegex","type":"string","default":"","placeholder":"e.g. [N-n]ame","description":"Regex to match the key name","hint":"Learn more and test RegEx <a href=\"https://regex101.com/\">here</a>"},{"displayName":"Replace With","name":"replaceRegex","type":"string","default":"","placeholder":"replacedName","description":"The name the key/s should be renamed to. It's possible to use regex captures e.g. $1, $2, ..."},{"displayName":"Options","name":"options","type":"collection","default":{},"placeholder":"Add Regex Option","options":[{"displayName":"Case Insensitive","name":"caseInsensitive","type":"boolean","description":"Whether to use case insensitive match","default":false},{"displayName":"Max Depth","name":"depth","type":"number","default":-1,"description":"Maximum depth to replace keys","hint":"Specify number for depth level (-1 for unlimited, 0 for top level only)"}]}]}]}]}],"codex":{"categories":["Core Nodes"],"subcategories":{"Core Nodes":["Data Transformation"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.renamekeys/"}]}}},
332
334
  {"displayName":"Respond to Webhook","name":"n8n-nodes-base.respondToWebhook","group":["transform"],"version":1,"description":"Returns data for Webhook","defaults":{"name":"Respond to Webhook"},"inputs":["main"],"outputs":["main"],"credentials":[],"properties":[{"displayName":"Respond With","name":"respondWith","type":"options","options":[{"name":"Binary","value":"binary"},{"name":"First Incoming Item","value":"firstIncomingItem"},{"name":"JSON","value":"json"},{"name":"No Data","value":"noData"},{"name":"Text","value":"text"}],"default":"firstIncomingItem","description":"The data that should be returned"},{"displayName":"When using expressions, note that this node will only run for the first item in the input data.","name":"webhookNotice","type":"notice","displayOptions":{"show":{"respondWith":["json","text"]}},"default":""},{"displayName":"Response Body","name":"responseBody","type":"json","displayOptions":{"show":{"respondWith":["json"]}},"default":"","placeholder":"{ \"key\": \"value\" }","description":"The HTTP Response JSON data"},{"displayName":"Response Body","name":"responseBody","type":"string","displayOptions":{"show":{"respondWith":["text"]}},"default":"","placeholder":"e.g. Workflow started","description":"The HTTP Response text data"},{"displayName":"Response Data Source","name":"responseDataSource","type":"options","displayOptions":{"show":{"respondWith":["binary"]}},"options":[{"name":"Choose Automatically From Input","value":"automatically","description":"Use if input data will contain a single piece of binary data"},{"name":"Specify Myself","value":"set","description":"Enter the name of the input field the binary data will be in"}],"default":"automatically"},{"displayName":"Input Field Name","name":"inputFieldName","type":"string","required":true,"default":"data","displayOptions":{"show":{"respondWith":["binary"],"responseDataSource":["set"]}},"description":"The name of the node input field with the binary data"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Response Code","name":"responseCode","type":"number","typeOptions":{"minValue":100,"maxValue":599},"default":200,"description":"The HTTP Response code to return. Defaults to 200."},{"displayName":"Response Headers","name":"responseHeaders","placeholder":"Add Response Header","description":"Add headers to the webhook response","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{},"options":[{"name":"entries","displayName":"Entries","values":[{"displayName":"Name","name":"name","type":"string","default":"","description":"Name of the header"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Value of the header"}]}]}]}],"codex":{"categories":["Core Nodes","Utility"],"subcategories":{"Core Nodes":["Flow"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook/"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/RespondToWebhook/webhook.svg"},
333
335
  {"displayName":"RocketChat","name":"n8n-nodes-base.rocketchat","group":["output"],"version":1,"subtitle":"={{$parameter[\"resource\"] + \": \" + $parameter[\"operation\"]}}","description":"Consume RocketChat API","defaults":{"name":"RocketChat"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"rocketchatApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Chat","value":"chat"}],"default":"chat"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["chat"]}},"options":[{"name":"Post Message","value":"postMessage","description":"Post a message to a channel or a direct message","action":"Post a message"}],"default":"postMessage"},{"displayName":"Channel","name":"channel","type":"string","required":true,"displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"]}},"default":"","description":"The channel name with the prefix in front of it"},{"displayName":"Text","name":"text","type":"string","displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"]}},"default":"","description":"The text of the message to send, is optional because of attachments"},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"]}},"options":[{"displayName":"Alias","name":"alias","type":"string","default":"","description":"This will cause the message’s name to appear as the given alias, but your username will still display"},{"displayName":"Avatar","name":"avatar","type":"string","default":"","description":"If provided, this will make the avatar use the provided image URL"},{"displayName":"Emoji","name":"emoji","type":"string","default":"","description":"This will cause the message’s name to appear as the given alias, but your username will still display"}]},{"displayName":"Attachments","name":"attachments","type":"collection","default":{},"placeholder":"Add Attachment Item","typeOptions":{"multipleValues":true,"multipleValueButtonText":"Add Attachment"},"displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"],"jsonParameters":[false]}},"options":[{"displayName":"Color","name":"color","type":"color","default":"#ff0000","description":"The color you want the order on the left side to be, any value background-css supports"},{"displayName":"Text","name":"text","type":"string","default":"","description":"The text to display for this attachment, it is different than the message’s text"},{"displayName":"Timestamp","name":"ts","type":"dateTime","default":"","description":"Displays the time next to the text portion"},{"displayName":"Thumb URL","name":"thumbUrl","type":"string","default":"","description":"An image that displays to the left of the text, looks better when this is relatively small"},{"displayName":"Message Link","name":"messageLink","type":"string","default":"","description":"Only applicable if the timestamp is provided, as it makes the time clickable to this link"},{"displayName":"Collapsed","name":"collapsed","type":"boolean","default":false,"description":"Causes the image, audio, and video sections to be hiding when collapsed is true"},{"displayName":"Author Name","name":"authorName","type":"string","default":"","description":"Name of the author"},{"displayName":"Author Link","name":"authorLink","type":"string","default":"","description":"Providing this makes the author name clickable and points to this link"},{"displayName":"Author Icon","name":"authorIcon","type":"string","default":"","placeholder":"https://site.com/img.png","description":"Displays a tiny icon to the left of the Author’s name"},{"displayName":"Title","name":"title","type":"string","default":"","description":"Title to display for this attachment, displays under the author"},{"displayName":"Title Link","name":"titleLink","type":"string","default":"","description":"Providing this makes the title clickable, pointing to this link"},{"displayName":"Title Link Download","name":"titleLinkDownload","type":"boolean","default":false,"description":"When this is true, a download icon appears and clicking this saves the link to file"},{"displayName":"Image URL","name":"imageUrl","type":"string","default":"","description":"The image to display, will be “big” and easy to see"},{"displayName":"Audio URL","name":"audioUrl","type":"string","default":"","placeholder":"https://site.com/aud.mp3","description":"Audio file to play, only supports what html audio does"},{"displayName":"Video URL","name":"videoUrl","type":"string","default":"","placeholder":"https://site.com/vid.mp4","description":"Video file to play, only supports what html video does"},{"displayName":"Fields","name":"fields","type":"fixedCollection","placeholder":"Add Field Item","typeOptions":{"multipleValues":true},"default":{},"options":[{"name":"fieldsValues","displayName":"Fields","values":[{"displayName":"Short","name":"short","type":"boolean","default":false,"description":"Whether this field should be a short field"},{"displayName":"Title","name":"title","type":"string","default":"","description":"The title of this field"},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value of this field, displayed underneath the title value"}]}]}]},{"displayName":"Attachments","name":"attachmentsJson","type":"json","typeOptions":{"alwaysOpenEditWindow":true},"displayOptions":{"show":{"resource":["chat"],"operation":["postMessage"],"jsonParameters":[true]}},"default":""}],"codex":{"categories":["Communication"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.rocketchat/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/rocketchat"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Rocketchat/rocketchat.svg"},
334
- {"displayName":"RSS Read","name":"n8n-nodes-base.rssFeedRead","icon":"fa:rss","group":["input"],"version":1,"description":"Reads data from an RSS Feed","defaults":{"name":"RSS Read","color":"#b02020"},"inputs":["main"],"outputs":["main"],"properties":[{"displayName":"URL","name":"url","type":"string","default":"","required":true,"description":"URL of the RSS feed"}],"codex":{"categories":["Core Nodes"],"subcategories":{"Core Nodes":["Helpers"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.rssfeedread/"}]}}},
336
+ {"displayName":"RSS Read","name":"n8n-nodes-base.rssFeedRead","icon":"fa:rss","group":["input"],"version":1,"description":"Reads data from an RSS Feed","defaults":{"name":"RSS Read","color":"#b02020"},"inputs":["main"],"outputs":["main"],"properties":[{"displayName":"URL","name":"url","type":"string","default":"","required":true,"description":"URL of the RSS feed"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Ignore SSL Issues","name":"ignoreSSL","type":"boolean","default":false,"description":"Whether to ignore SSL/TLS certificate issues or not"}]}],"codex":{"categories":["Core Nodes"],"subcategories":{"Core Nodes":["Helpers"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.rssfeedread/"}]}}},
335
337
  {"displayName":"Rundeck","name":"n8n-nodes-base.rundeck","group":["transform"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Manage Rundeck API","defaults":{"name":"Rundeck"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"rundeckApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Job","value":"job"}],"default":"job"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Execute","value":"execute","description":"Execute a job","action":"Execute a job"},{"name":"Get Metadata","value":"getMetadata","description":"Get metadata of a job","action":"Get metadata of a job"}],"default":"execute"},{"displayName":"Job ID","name":"jobid","type":"string","displayOptions":{"show":{"operation":["execute"],"resource":["job"]}},"default":"","placeholder":"Rundeck Job ID","required":true,"description":"The job ID to execute"},{"displayName":"Arguments","name":"arguments","placeholder":"Add Argument","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"operation":["execute"],"resource":["job"]}},"default":{},"options":[{"name":"arguments","displayName":"Arguments","values":[{"displayName":"Name","name":"name","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Filter","name":"filter","type":"string","displayOptions":{"show":{"operation":["execute"],"resource":["job"]}},"default":"","placeholder":"Add Filters","description":"Filter Rundeck nodes by name"},{"displayName":"Job ID","name":"jobid","type":"string","displayOptions":{"show":{"operation":["getMetadata"],"resource":["job"]}},"default":"","placeholder":"Rundeck Job ID","required":true,"description":"The job ID to get metadata off"}],"codex":{"categories":["Communication","Development"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.rundeck/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/rundeck"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Rundeck/rundeck.png"},
336
338
  {"displayName":"S3","name":"n8n-nodes-base.s3","group":["output"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Sends data to any S3-compatible service","defaults":{"name":"S3"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"s3","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Bucket","value":"bucket"},{"name":"File","value":"file"},{"name":"Folder","value":"folder"}],"default":"file"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["bucket"]}},"options":[{"name":"Create","value":"create","description":"Create a bucket","action":"Create a bucket"},{"name":"Delete","value":"delete","description":"Delete a bucket","action":"Delete a bucket"},{"name":"Get Many","value":"getAll","description":"Get many buckets","action":"Get many buckets"},{"name":"Search","value":"search","description":"Search within a bucket","action":"Search a bucket"}],"default":"create"},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["bucket"],"operation":["create"]}},"description":"A succinct description of the nature, symptoms, cause, or effect of the bucket"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["bucket"],"operation":["create"]}},"default":{},"options":[{"displayName":"ACL","name":"acl","type":"options","options":[{"name":"Authenticated Read","value":"authenticatedRead"},{"name":"Private","value":"Private"},{"name":"Public Read","value":"publicRead"},{"name":"Public Read Write","value":"publicReadWrite"}],"default":"","description":"The canned ACL to apply to the bucket"},{"displayName":"Bucket Object Lock Enabled","name":"bucketObjectLockEnabled","type":"boolean","default":false,"description":"Whether you want S3 Object Lock to be enabled for the new bucket"},{"displayName":"Grant Full Control","name":"grantFullControl","type":"boolean","default":false,"description":"Whether to allow grantee the read, write, read ACP, and write ACP permissions on the bucket"},{"displayName":"Grant Read","name":"grantRead","type":"boolean","default":false,"description":"Whether to allow grantee to list the objects in the bucket"},{"displayName":"Grant Read ACP","name":"grantReadAcp","type":"boolean","default":false,"description":"Whether to allow grantee to read the bucket ACL"},{"displayName":"Grant Write","name":"grantWrite","type":"boolean","default":false,"description":"Whether to allow grantee to create, overwrite, and delete any object in the bucket"},{"displayName":"Grant Write ACP","name":"grantWriteAcp","type":"boolean","default":false,"description":"Whether to allow grantee to write the ACL for the applicable bucket"},{"displayName":"Region","name":"region","type":"string","default":"","description":"Region you want to create the bucket in, by default the buckets are created on the region defined on the credentials"}]},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["bucket"],"operation":["delete"]}},"description":"Name of the AWS S3 bucket to delete"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"],"resource":["bucket"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"resource":["bucket"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["bucket"],"operation":["search"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["search"],"resource":["bucket"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["search"],"resource":["bucket"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["bucket"],"operation":["search"]}},"default":{},"options":[{"displayName":"Delimiter","name":"delimiter","type":"string","default":"","description":"A delimiter is a character you use to group keys"},{"displayName":"Encoding Type","name":"encodingType","type":"options","options":[{"name":"URL","value":"url"}],"default":"","description":"Encoding type used by Amazon S3 to encode object keys in the response"},{"displayName":"Fetch Owner","name":"fetchOwner","type":"boolean","default":false,"description":"The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true"},{"displayName":"Prefix","name":"prefix","type":"string","default":"","description":"Limits the response to keys that begin with the specified prefix"},{"displayName":"Requester Pays","name":"requesterPays","type":"boolean","default":false,"description":"Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled."},{"displayName":"Start After","name":"startAfter","type":"string","default":"","description":"StartAfter is where you want Amazon S3 to start listing from. Amazon S3 starts listing after this specified key."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["folder"]}},"options":[{"name":"Create","value":"create","description":"Create a folder","action":"Create a folder"},{"name":"Delete","value":"delete","description":"Delete a folder","action":"Delete a folder"},{"name":"Get Many","value":"getAll","description":"Get many folders","action":"Get many folders"}],"default":"create"},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["folder"],"operation":["create"]}}},{"displayName":"Folder Name","name":"folderName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["folder"],"operation":["create"]}}},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["folder"],"operation":["create"]}},"default":{},"options":[{"displayName":"Parent Folder Key","name":"parentFolderKey","type":"string","default":"","description":"Parent folder you want to create the folder in"},{"displayName":"Requester Pays","name":"requesterPays","type":"boolean","default":false,"description":"Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled."},{"displayName":"Storage Class","name":"storageClass","type":"options","options":[{"name":"Deep Archive","value":"deepArchive"},{"name":"Glacier","value":"glacier"},{"name":"Intelligent Tiering","value":"intelligentTiering"},{"name":"One Zone IA","value":"onezoneIA"},{"name":"Reduced Redundancy","value":"RecudedRedundancy"},{"name":"Standard","value":"standard"},{"name":"Standard IA","value":"standardIA"}],"default":"standard","description":"Amazon S3 storage classes"}]},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["folder"],"operation":["delete"]}}},{"displayName":"Folder Key","name":"folderKey","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["folder"],"operation":["delete"]}}},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["folder"],"operation":["getAll"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"],"resource":["folder"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"resource":["folder"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["folder"],"operation":["getAll"]}},"options":[{"displayName":"Fetch Owner","name":"fetchOwner","type":"boolean","default":false,"description":"The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true"},{"displayName":"Folder Key","name":"folderKey","type":"string","default":""}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["file"]}},"options":[{"name":"Copy","value":"copy","description":"Copy a file","action":"Copy a file"},{"name":"Delete","value":"delete","description":"Delete a file","action":"Delete a file"},{"name":"Download","value":"download","description":"Download a file","action":"Download a file"},{"name":"Get Many","value":"getAll","description":"Get many files","action":"Get many files"},{"name":"Upload","value":"upload","description":"Upload a file","action":"Upload a file"}],"default":"download"},{"displayName":"Source Path","name":"sourcePath","type":"string","required":true,"default":"","placeholder":"/bucket/my-image.jpg","displayOptions":{"show":{"resource":["file"],"operation":["copy"]}},"description":"The name of the source bucket and key name of the source object, separated by a slash (/)"},{"displayName":"Destination Path","name":"destinationPath","type":"string","required":true,"default":"","placeholder":"/bucket/my-second-image.jpg","displayOptions":{"show":{"resource":["file"],"operation":["copy"]}},"description":"The name of the destination bucket and key name of the destination object, separated by a slash (/)"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["file"],"operation":["copy"]}},"default":{},"options":[{"displayName":"ACL","name":"acl","type":"options","options":[{"name":"Authenticated Read","value":"authenticatedRead"},{"name":"AWS Exec Read","value":"awsExecRead"},{"name":"Bucket Owner Full Control","value":"bucketOwnerFullControl"},{"name":"Bucket Owner Read","value":"bucketOwnerRead"},{"name":"Private","value":"private"},{"name":"Public Read","value":"publicRead"},{"name":"Public Read Write","value":"publicReadWrite"}],"default":"private","description":"The canned ACL to apply to the object"},{"displayName":"Grant Full Control","name":"grantFullControl","type":"boolean","default":false,"description":"Whether to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object"},{"displayName":"Grant Read","name":"grantRead","type":"boolean","default":false,"description":"Whether to allow grantee to read the object data and its metadata"},{"displayName":"Grant Read ACP","name":"grantReadAcp","type":"boolean","default":false,"description":"Whether to allow grantee to read the object ACL"},{"displayName":"Grant Write ACP","name":"grantWriteAcp","type":"boolean","default":false,"description":"Whether to allow grantee to write the ACL for the applicable object"},{"displayName":"Lock Legal Hold","name":"lockLegalHold","type":"boolean","default":false,"description":"Whether a legal hold will be applied to this object"},{"displayName":"Lock Mode","name":"lockMode","type":"options","options":[{"name":"Governance","value":"governance"},{"name":"Compliance","value":"compliance"}],"default":"","description":"The Object Lock mode that you want to apply to this object"},{"displayName":"Lock Retain Until Date","name":"lockRetainUntilDate","type":"dateTime","default":"","description":"The date and time when you want this object's Object Lock to expire"},{"displayName":"Metadata Directive","name":"metadataDirective","type":"options","options":[{"name":"Copy","value":"copy"},{"name":"Replace","value":"replace"}],"default":"","description":"Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request"},{"displayName":"Requester Pays","name":"requesterPays","type":"boolean","default":false,"description":"Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled."},{"displayName":"Server Side Encryption","name":"serverSideEncryption","type":"options","options":[{"name":"AES256","value":"AES256"},{"name":"AWS:KMS","value":"aws:kms"}],"default":"","description":"The server-side encryption algorithm used when storing this object in Amazon S3"},{"displayName":"Server Side Encryption Context","name":"serverSideEncryptionContext","type":"string","default":"","description":"Specifies the AWS KMS Encryption Context to use for object encryption"},{"displayName":"Server Side Encryption AWS KMS Key ID","name":"encryptionAwsKmsKeyId","type":"string","default":"","description":"If x-amz-server-side-encryption is present and has the value of aws:kms"},{"displayName":"Server Side Encryption Customer Algorithm","name":"serversideEncryptionCustomerAlgorithm","type":"string","default":"","description":"Specifies the algorithm to use to when encrypting the object (for example, AES256)"},{"displayName":"Server Side Encryption Customer Key","name":"serversideEncryptionCustomerKey","type":"string","default":"","description":"Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data"},{"displayName":"Server Side Encryption Customer Key MD5","name":"serversideEncryptionCustomerKeyMD5","type":"string","default":"","description":"Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321"},{"displayName":"Storage Class","name":"storageClass","type":"options","options":[{"name":"Deep Archive","value":"deepArchive"},{"name":"Glacier","value":"glacier"},{"name":"Intelligent Tiering","value":"intelligentTiering"},{"name":"One Zone IA","value":"onezoneIA"},{"name":"Standard","value":"standard"},{"name":"Standard IA","value":"standardIA"}],"default":"standard","description":"Amazon S3 storage classes"},{"displayName":"Tagging Directive","name":"taggingDirective","type":"options","options":[{"name":"Copy","value":"copy"},{"name":"Replace","value":"replace"}],"default":"","description":"Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request"}]},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["upload"]}}},{"displayName":"File Name","name":"fileName","type":"string","default":"","placeholder":"hello.txt","required":true,"displayOptions":{"show":{"resource":["file"],"operation":["upload"],"binaryData":[false]}}},{"displayName":"File Name","name":"fileName","type":"string","default":"","displayOptions":{"show":{"resource":["file"],"operation":["upload"],"binaryData":[true]}},"description":"If not set the binary data filename will be used"},{"displayName":"Binary Data","name":"binaryData","type":"boolean","default":true,"displayOptions":{"show":{"operation":["upload"],"resource":["file"]}},"description":"Whether the data to upload should be taken from binary field"},{"displayName":"File Content","name":"fileContent","type":"string","default":"","displayOptions":{"show":{"operation":["upload"],"resource":["file"],"binaryData":[false]}},"placeholder":"","description":"The text content of the file to upload"},{"displayName":"Binary Property","name":"binaryPropertyName","type":"string","default":"data","required":true,"displayOptions":{"show":{"operation":["upload"],"resource":["file"],"binaryData":[true]}},"placeholder":"","description":"Name of the binary property which contains the data for the file to be uploaded"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","displayOptions":{"show":{"resource":["file"],"operation":["upload"]}},"default":{},"options":[{"displayName":"ACL","name":"acl","type":"options","options":[{"name":"Authenticated Read","value":"authenticatedRead"},{"name":"AWS Exec Read","value":"awsExecRead"},{"name":"Bucket Owner Full Control","value":"bucketOwnerFullControl"},{"name":"Bucket Owner Read","value":"bucketOwnerRead"},{"name":"Private","value":"private"},{"name":"Public Read","value":"publicRead"},{"name":"Public Read Write","value":"publicReadWrite"}],"default":"private","description":"The canned ACL to apply to the object"},{"displayName":"Grant Full Control","name":"grantFullControl","type":"boolean","default":false,"description":"Whether to give the grantee READ, READ_ACP, and WRITE_ACP permissions on the object"},{"displayName":"Grant Read","name":"grantRead","type":"boolean","default":false,"description":"Whether to allow grantee to read the object data and its metadata"},{"displayName":"Grant Read ACP","name":"grantReadAcp","type":"boolean","default":false,"description":"Whether to allow grantee to read the object ACL"},{"displayName":"Grant Write ACP","name":"grantWriteAcp","type":"boolean","default":false,"description":"Whether to allow grantee to write the ACL for the applicable object"},{"displayName":"Lock Legal Hold","name":"lockLegalHold","type":"boolean","default":false,"description":"Whether a legal hold will be applied to this object"},{"displayName":"Lock Mode","name":"lockMode","type":"options","options":[{"name":"Governance","value":"governance"},{"name":"Compliance","value":"compliance"}],"default":"","description":"The Object Lock mode that you want to apply to this object"},{"displayName":"Lock Retain Until Date","name":"lockRetainUntilDate","type":"dateTime","default":"","description":"The date and time when you want this object's Object Lock to expire"},{"displayName":"Parent Folder Key","name":"parentFolderKey","type":"string","default":"","description":"Parent folder you want to create the file in"},{"displayName":"Requester Pays","name":"requesterPays","type":"boolean","default":false,"description":"Whether the requester will pay for requests and data transfer. While Requester Pays is enabled, anonymous access to this bucket is disabled."},{"displayName":"Server Side Encryption","name":"serverSideEncryption","type":"options","options":[{"name":"AES256","value":"AES256"},{"name":"AWS:KMS","value":"aws:kms"}],"default":"","description":"The server-side encryption algorithm used when storing this object in Amazon S3"},{"displayName":"Server Side Encryption Context","name":"serverSideEncryptionContext","type":"string","default":"","description":"Specifies the AWS KMS Encryption Context to use for object encryption"},{"displayName":"Server Side Encryption AWS KMS Key ID","name":"encryptionAwsKmsKeyId","type":"string","default":"","description":"If x-amz-server-side-encryption is present and has the value of aws:kms"},{"displayName":"Server Side Encryption Customer Algorithm","name":"serversideEncryptionCustomerAlgorithm","type":"string","default":"","description":"Specifies the algorithm to use to when encrypting the object (for example, AES256)"},{"displayName":"Server Side Encryption Customer Key","name":"serversideEncryptionCustomerKey","type":"string","default":"","description":"Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data"},{"displayName":"Server Side Encryption Customer Key MD5","name":"serversideEncryptionCustomerKeyMD5","type":"string","default":"","description":"Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321"},{"displayName":"Storage Class","name":"storageClass","type":"options","options":[{"name":"Deep Archive","value":"deepArchive"},{"name":"Glacier","value":"glacier"},{"name":"Intelligent Tiering","value":"intelligentTiering"},{"name":"One Zone IA","value":"onezoneIA"},{"name":"Standard","value":"standard"},{"name":"Standard IA","value":"standardIA"}],"default":"standard","description":"Amazon S3 storage classes"}]},{"displayName":"Tags","name":"tagsUi","placeholder":"Add Tag","type":"fixedCollection","default":{},"typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["file"],"operation":["upload"]}},"options":[{"name":"tagsValues","displayName":"Tag","values":[{"displayName":"Key","name":"key","type":"string","default":""},{"displayName":"Value","name":"value","type":"string","default":""}]}],"description":"Optional extra headers to add to the message (most headers are allowed)"},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["download"]}}},{"displayName":"File Key","name":"fileKey","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["download"]}}},{"displayName":"Binary Property","name":"binaryPropertyName","type":"string","required":true,"default":"data","displayOptions":{"show":{"operation":["download"],"resource":["file"]}},"description":"Name of the binary property to which to write the data of the read file"},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["delete"]}}},{"displayName":"File Key","name":"fileKey","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["delete"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["file"],"operation":["delete"]}},"options":[{"displayName":"Version ID","name":"versionId","type":"string","default":""}]},{"displayName":"Bucket Name","name":"bucketName","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["file"],"operation":["getAll"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"],"resource":["file"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"resource":["file"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":100,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["file"],"operation":["getAll"]}},"options":[{"displayName":"Fetch Owner","name":"fetchOwner","type":"boolean","default":false,"description":"The owner field is not present in listV2 by default, if you want to return owner field with each key in the result then set the fetch owner field to true"},{"displayName":"Folder Key","name":"folderKey","type":"string","default":""}]}],"codex":{"categories":["Development","Data & Storage"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.s3/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/s3"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/S3/s3.png"},
337
339
  {"displayName":"Salesforce","name":"n8n-nodes-base.salesforce","group":["output"],"version":1,"subtitle":"={{$parameter[\"operation\"] + \": \" + $parameter[\"resource\"]}}","description":"Consume Salesforce API","defaults":{"name":"Salesforce"},"inputs":["main"],"outputs":["main"],"credentials":[{"name":"salesforceOAuth2Api","required":true,"displayOptions":{"show":{"authentication":["oAuth2"]}}},{"name":"salesforceJwtApi","required":true,"displayOptions":{"show":{"authentication":["jwt"]}}}],"properties":[{"displayName":"Authentication","name":"authentication","type":"options","options":[{"name":"OAuth2","value":"oAuth2"},{"name":"OAuth2 JWT","value":"jwt"}],"default":"oAuth2","description":"OAuth Authorization Flow"},{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"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"}],"default":"lead"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["lead"]}},"options":[{"name":"Add Lead To Campaign","value":"addToCampaign","description":"Add lead to a campaign","action":"Add a lead to a campaign"},{"name":"Add Note","value":"addNote","description":"Add note to a lead","action":"Add a note to a lead"},{"name":"Create","value":"create","description":"Create a lead","action":"Create a lead"},{"name":"Create or Update","value":"upsert","description":"Create a new lead, or update the current one if it already exists (upsert)","action":"Create or update a lead"},{"name":"Delete","value":"delete","description":"Delete a lead","action":"Delete a lead"},{"name":"Get","value":"get","description":"Get a lead","action":"Get a lead"},{"name":"Get Many","value":"getAll","description":"Get many leads","action":"Get many leads"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of Lead's metadata","action":"Get a lead summary"},{"name":"Update","value":"update","description":"Update a lead","action":"Update a lead"}],"default":"create"},{"displayName":"Match Against","name":"externalId","type":"options","typeOptions":{"loadOptionsMethod":"getExternalIdFields","loadOptionsDependsOn":["resource"]},"required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["upsert"]}},"description":"The field to check to see if the lead already exists. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value to Match","name":"externalIdValue","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["upsert"]}},"description":"If this value exists in the 'match against' field, update the lead. Otherwise create a new one."},{"displayName":"Company","name":"company","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["create","upsert"]}},"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."},{"displayName":"Last Name","name":"lastname","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["create","upsert"]}},"description":"Required. Last name of the lead. Limited to 80 characters."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["lead"],"operation":["create","upsert"]}},"options":[{"displayName":"Annual Revenue","name":"annualRevenue","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Annual revenue for the company of the lead"},{"displayName":"City","name":"city","type":"string","default":"","description":"City for the address of the lead"},{"displayName":"Country","name":"country","type":"string","default":"","description":"Country of the lead"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Description of the lead"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email address for the lead"},{"displayName":"First Name","name":"firstname","type":"string","default":"","description":"First name of the lead. Limited to 40 characters."},{"displayName":"Has Opted Out of Email","name":"hasOptedOutOfEmail","type":"boolean","default":false,"description":"Whether the lead doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out."},{"displayName":"Industry","name":"industry","type":"string","default":"","description":"Website for the lead"},{"displayName":"Is Unread By Owner","name":"IsUnreadByOwner","type":"boolean","default":false,"description":"Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner."},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"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."},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Mobile Phone","name":"mobilePhone","type":"string","default":"","description":"Contact’s mobile phone number"},{"displayName":"Number Of Employees","name":"numberOfEmployees","type":"number","default":"","description":"Number of employees at the lead’s company. Label is Employees."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getLeadOwners"},"default":"","description":"The owner of the lead. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the lead"},{"displayName":"Postal Code","name":"postalCode","type":"string","default":"","description":"Postal code for the address of the lead. Label is Zip/Postal Code."},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Rating","name":"rating","type":"string","default":"","description":"Rating of the lead"},{"displayName":"Salutation","name":"salutation","type":"string","default":"","description":"Salutation for the lead"},{"displayName":"State","name":"state","type":"string","default":"","description":"State for the address of the lead"},{"displayName":"Status Name or ID","name":"status","type":"options","typeOptions":{"loadOptionsMethod":"getLeadStatuses"},"default":"","description":"Status code for this converted lead. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Street","name":"street","type":"string","default":"","description":"Street number and name for the address of the lead"},{"displayName":"Title","name":"title","type":"string","default":"","description":"Title for the lead, for example CFO or CEO"},{"displayName":"Website","name":"website","type":"string","default":"","description":"Website for the lead"}]},{"displayName":"Lead ID","name":"leadId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["update"]}},"description":"ID of Lead that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["lead"],"operation":["update"]}},"options":[{"displayName":"Annual Revenue","name":"annualRevenue","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Annual revenue for the company of the lead"},{"displayName":"City","name":"city","type":"string","default":"","description":"City for the address of the lead"},{"displayName":"Company","name":"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."},{"displayName":"Country","name":"country","type":"string","default":"","description":"Country of the lead"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Description of the lead"},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email address for the lead"},{"displayName":"First Name","name":"firstname","type":"string","default":"","description":"First name of the lead. Limited to 40 characters."},{"displayName":"Has Opted Out of Email","name":"hasOptedOutOfEmail","type":"boolean","default":false,"description":"Whether the lead doesn’t want to receive email from Salesforce (true) or does (false). Label is Email Opt Out."},{"displayName":"Industry","name":"industry","type":"string","default":"","description":"Website for the lead"},{"displayName":"Is Unread By Owner","name":"IsUnreadByOwner","type":"boolean","default":false,"description":"Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner."},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"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."},{"displayName":"Last Name","name":"lastname","type":"string","default":"","description":"Required. Last name of the lead. Limited to 80 characters."},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Mobile Phone","name":"mobilePhone","type":"string","default":"","description":"Contact’s mobile phone number"},{"displayName":"Number Of Employees","name":"numberOfEmployees","type":"number","default":"","description":"Number of employees at the lead’s company. Label is Employees."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getLeadOwners"},"default":"","description":"The owner of the lead. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Postal Code","name":"postalCode","type":"string","default":"","description":"Postal code for the address of the lead. Label is Zip/Postal Code."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the lead"},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Rating","name":"rating","type":"string","default":"","description":"Rating of the lead"},{"displayName":"Salutation","name":"salutation","type":"string","default":"","description":"Salutation for the lead"},{"displayName":"State","name":"state","type":"string","default":"","description":"State for the address of the lead"},{"displayName":"Status Name or ID","name":"status","type":"options","typeOptions":{"loadOptionsMethod":"getLeadStatuses"},"default":"","description":"Status code for this converted lead. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Street","name":"street","type":"string","default":"","description":"Street number and name for the address of the lead"},{"displayName":"Title","name":"title","type":"string","default":"","description":"Title for the lead, for example CFO or CEO"},{"displayName":"Website","name":"website","type":"string","default":"","description":"Website for the lead"}]},{"displayName":"Lead ID","name":"leadId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["get"]}},"description":"ID of Lead that needs to be fetched"},{"displayName":"Lead ID","name":"leadId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["delete"]}},"description":"ID of Lead that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["lead"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["lead"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["lead"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getLeadFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Lead ID","name":"leadId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["addToCampaign"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Campaign Name or ID","name":"campaignId","type":"options","typeOptions":{"loadOptionsMethod":"getCampaigns"},"required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["addToCampaign"]}},"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-examples/expressions/\">expression</a>."},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["lead"],"operation":["addToCampaign"]}},"options":[{"displayName":"Status","name":"status","type":"string","default":"","description":"Controls the HasResponded flag on this object"}]},{"displayName":"Lead ID","name":"leadId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["addNote"]}},"description":"ID of lead that needs to be fetched"},{"displayName":"Title","name":"title","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["lead"],"operation":["addNote"]}},"description":"Title of the note"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["lead"],"operation":["addNote"]}},"options":[{"displayName":"Body","name":"body","type":"string","default":"","description":"Body of the note. Limited to 32 KB."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the user who owns the note. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["contact"]}},"options":[{"name":"Add Contact To Campaign","value":"addToCampaign","description":"Add contact to a campaign","action":"Add a contact to a campaign"},{"name":"Add Note","value":"addNote","description":"Add note to a contact","action":"Add a note to a contact"},{"name":"Create","value":"create","description":"Create a contact","action":"Create a contact"},{"name":"Create or Update","value":"upsert","description":"Create a new contact, or update the current one if it already exists (upsert)","action":"Create or update a contact"},{"name":"Delete","value":"delete","description":"Delete a contact","action":"Delete a contact"},{"name":"Get","value":"get","description":"Get a contact","action":"Get a contact"},{"name":"Get Many","value":"getAll","description":"Get many contacts","action":"Get many contacts"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of contact's metadata","action":"Get a contact summary"},{"name":"Update","value":"update","description":"Update a contact","action":"Update a contact"}],"default":"create"},{"displayName":"Match Against","name":"externalId","type":"options","typeOptions":{"loadOptionsMethod":"getExternalIdFields","loadOptionsDependsOn":["resource"]},"required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["upsert"]}},"description":"The field to check to see if the contact already exists. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value to Match","name":"externalIdValue","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["upsert"]}},"description":"If this value exists in the 'match against' field, update the contact. Otherwise create a new one."},{"displayName":"Last Name","name":"lastname","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["create","upsert"]}},"description":"Required. Last name of the contact. Limited to 80 characters."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["create","upsert"]}},"options":[{"displayName":"Account Name or ID","name":"acconuntId","type":"options","typeOptions":{"loadOptionsMethod":"getAccounts"},"default":"","description":"ID of the account that is the parent of this contact. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Assistant Name","name":"assistantName","type":"string","default":"","description":"The name of the assistant"},{"displayName":"Assistant Phone","name":"Assistant Phone","type":"string","default":"","description":"The telephone number of the assistant"},{"displayName":"Birth Date","name":"birthdate","type":"dateTime","default":"","description":"The birth date of the contact"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Department","name":"department","type":"string","default":"","description":"The department of the contact"},{"displayName":"Description","name":"description","type":"string","default":"","description":"A description of the contact. Label is Contact Description. Limit: 32 KB."},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email address for the contact"},{"displayName":"Email Bounced Date","name":"otherPostalCode","type":"dateTime","default":"","description":"If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred"},{"displayName":"Email Bounced Reason","name":"emailBouncedReason","type":"string","default":"","description":"If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred"},{"displayName":"Fax","name":"fax","type":"string","default":"","description":"Fax number for the contact. Label is Business Fax."},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"First name of the contact. Maximum size is 40 characters."},{"displayName":"Home Phone","name":"homePhone","type":"string","default":"","description":"Home telephone number for the contact"},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com."},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Mailing City","name":"mailingCity","type":"string","default":""},{"displayName":"Mailing Country","name":"mailingCountry","type":"string","default":""},{"displayName":"Mobile Phone","name":"mobilePhone","type":"string","default":"","description":"Contact’s mobile phone number"},{"displayName":"Mailing Postal Code","name":"mailingPostalCode","type":"string","default":""},{"displayName":"Mailing State","name":"mailingState","type":"string","default":""},{"displayName":"Mailing Street","name":"mailingStreet","type":"string","default":"","description":"Street address for mailing address"},{"displayName":"Other City","name":"otherCity","type":"string","default":""},{"displayName":"Other Country","name":"otherCountry","type":"string","default":""},{"displayName":"Other Phone","name":"otherPhone","type":"string","default":"","description":"Telephone for alternate address"},{"displayName":"Other Postal Code","name":"otherPostalCode","type":"string","default":""},{"displayName":"Other State","name":"otherState","type":"string","default":""},{"displayName":"Other Street","name":"otherStreet","type":"string","default":"","description":"Street for alternate address"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the contact. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the contact"},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Salutation","name":"salutation","type":"string","default":"","description":"Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Title of the contact such as CEO or Vice President"}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["update"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["update"]}},"options":[{"displayName":"Account Name or ID","name":"acconuntId","type":"options","typeOptions":{"loadOptionsMethod":"getAccounts"},"default":"","description":"ID of the account that is the parent of this contact. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Assistant Name","name":"assistantName","type":"string","default":"","description":"The name of the assistant"},{"displayName":"Assistant Phone","name":"Assistant Phone","type":"string","default":"","description":"The telephone number of the assistant"},{"displayName":"Birth Date","name":"birthdate","type":"dateTime","default":"","description":"The birth date of the contact"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Department","name":"department","type":"string","default":"","description":"The department of the contact"},{"displayName":"Description","name":"description","type":"string","default":"","description":"A description of the contact. Label is Contact Description. Limit: 32 KB."},{"displayName":"Email","name":"email","type":"string","placeholder":"name@email.com","default":"","description":"Email address for the contact"},{"displayName":"Email Bounced Date","name":"emailBouncedDate","type":"dateTime","default":"","description":"If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred"},{"displayName":"Email Bounced Reason","name":"emailBouncedReason","type":"string","default":"","description":"If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred"},{"displayName":"Fax","name":"fax","type":"string","default":"","description":"Fax number for the contact. Label is Business Fax."},{"displayName":"First Name","name":"firstName","type":"string","default":"","description":"First name of the contact. Maximum size is 40 characters."},{"displayName":"Home Phone","name":"homePhone","type":"string","default":"","description":"Home telephone number for the contact"},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com."},{"displayName":"Last Name","name":"lastName","type":"string","default":"","description":"Last name of the contact. Limited to 80 characters."},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Mailing City","name":"mailingCity","type":"string","default":""},{"displayName":"Mailing Country","name":"mailingCountry","type":"string","default":""},{"displayName":"Mailing State","name":"mailingState","type":"string","default":""},{"displayName":"Mailing Street","name":"mailingStreet","type":"string","default":"","description":"Street address for mailing address"},{"displayName":"Mailing Postal Code","name":"mailingPostalCode","type":"string","default":""},{"displayName":"Mobile Phone","name":"mobilePhone","type":"string","default":"","description":"Contact’s mobile phone number"},{"displayName":"Other City","name":"otherCity","type":"string","default":""},{"displayName":"Other Country","name":"otherCountry","type":"string","default":""},{"displayName":"Other Phone","name":"otherPhone","type":"string","default":"","description":"Telephone for alternate address"},{"displayName":"Other Postal Code","name":"otherPostalCode","type":"string","default":""},{"displayName":"Other State","name":"otherState","type":"string","default":""},{"displayName":"Other Street","name":"otherStreet","type":"string","default":"","description":"Street for alternate address"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the contact. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the contact"},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Salutation","name":"salutation","type":"string","default":"","description":"Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs."},{"displayName":"Title","name":"title","type":"string","default":"","description":"Title of the contact such as CEO or Vice President"}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["get"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["delete"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["contact"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getContactFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["addToCampaign"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Campaign Name or ID","name":"campaignId","type":"options","typeOptions":{"loadOptionsMethod":"getCampaigns"},"required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["addToCampaign"]}},"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-examples/expressions/\">expression</a>."},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["addToCampaign"]}},"options":[{"displayName":"Status","name":"status","type":"string","default":"","description":"Controls the HasResponded flag on this object"}]},{"displayName":"Contact ID","name":"contactId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["addNote"]}},"description":"ID of contact that needs to be fetched"},{"displayName":"Title","name":"title","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["contact"],"operation":["addNote"]}},"description":"Title of the note"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["contact"],"operation":["addNote"]}},"options":[{"displayName":"Body","name":"body","type":"string","default":"","description":"Body of the note. Limited to 32 KB."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the user who owns the note. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["customObject"]}},"options":[{"name":"Create","value":"create","description":"Create a custom object record","action":"Create a custom object"},{"name":"Create or Update","value":"upsert","description":"Create a new record, or update the current one if it already exists (upsert)","action":"Create or update a custom object"},{"name":"Delete","value":"delete","description":"Delete a custom object record","action":"Delete a custom object"},{"name":"Get","value":"get","description":"Get a custom object record","action":"Get a custom object"},{"name":"Get Many","value":"getAll","description":"Get many custom object records","action":"Get many custom objects"},{"name":"Update","value":"update","description":"Update a custom object record","action":"Update a custom object"}],"default":"create"},{"displayName":"Custom Object Name or ID","name":"customObject","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjects"},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["create","upsert"]}},"description":"Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Match Against","name":"externalId","type":"options","typeOptions":{"loadOptionsMethod":"getExternalIdFields","loadOptionsDependsOn":["customObject"]},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["upsert"]}},"description":"The field to check to see if the object already exists. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value to Match","name":"externalIdValue","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["upsert"]}},"description":"If this value exists in the 'match against' field, update the object. Otherwise create a new one."},{"displayName":"Fields","name":"customFieldsUi","placeholder":"Add Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["customObject"],"operation":["create","upsert"]}},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjectFields","loadOptionsDependsOn":["customObject"]},"default":"","description":"The ID of the field. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Custom Object Name or ID","name":"customObject","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjects"},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["update"]}},"description":"Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Record ID","name":"recordId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["update"]}},"description":"Record ID to be updated"},{"displayName":"Fields","name":"customFieldsUi","placeholder":"Add Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"displayOptions":{"show":{"resource":["customObject"],"operation":["update"]}},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjectFields","loadOptionsDependsOn":["customObject"]},"default":"","description":"The ID of the field. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Custom Object Name or ID","name":"customObject","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjects"},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["get"]}},"description":"Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Record ID","name":"recordId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["get"]}},"description":"Record ID to be retrieved"},{"displayName":"Custom Object Name or ID","name":"customObject","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjects"},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["delete"]}},"description":"Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Record ID","name":"recordId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["delete"]}},"description":"Record ID to be deleted"},{"displayName":"Custom Object Name or ID","name":"customObject","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjects"},"required":true,"default":"","displayOptions":{"show":{"resource":["customObject"],"operation":["getAll"]}},"description":"Name of the custom object. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["customObject"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["customObject"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["customObject"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getCustomObjectFields","loadOptionsDependsOn":["customObject"]},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Field Names or IDs","name":"fields","type":"multiOptions","typeOptions":{"loadOptionsMethod":"getCustomObjectFields","loadOptionsDependsOn":["customObject"]},"default":[],"description":"Fields to include separated by commas. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","displayOptions":{"show":{"operation":["create","upsert"],"resource":["customObject"]}},"default":{},"placeholder":"Add Field","options":[{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes","loadOptionsDependsOn":["customObject"]},"default":""}]},{"displayName":"Update Fields","name":"updateFields","type":"collection","displayOptions":{"show":{"operation":["update"],"resource":["customObject"]}},"default":{},"placeholder":"Add Field","options":[{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes","loadOptionsDependsOn":["customObject"]},"default":""}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["document"]}},"options":[{"name":"Upload","value":"upload","description":"Upload a document","action":"Upload a document"}],"default":"upload"},{"displayName":"Title","name":"title","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["document"],"operation":["upload"]}},"description":"Name of the file"},{"displayName":"Binary Property","name":"binaryPropertyName","type":"string","default":"data","required":true,"displayOptions":{"show":{"resource":["document"],"operation":["upload"]}},"placeholder":"","description":"Name of the binary property which contains the data for the file to be uploaded"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["document"],"operation":["upload"]}},"options":[{"displayName":"File Extension","name":"fileExtension","type":"string","default":"","placeholder":"pdf","description":"File extension to use. If none is set, the value from the binary data will be used."},{"displayName":"Link To Object ID","name":"linkToObjectId","type":"string","default":"","description":"ID of the object you want to link this document to"},{"displayName":"Owner Name or ID","name":"ownerId","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the owner of this document. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["opportunity"]}},"options":[{"name":"Add Note","value":"addNote","description":"Add note to an opportunity","action":"Add a note to an opportunity"},{"name":"Create","value":"create","description":"Create an opportunity","action":"Create an opportunity"},{"name":"Create or Update","value":"upsert","description":"Create a new opportunity, or update the current one if it already exists (upsert)","action":"Create or update an opportunity"},{"name":"Delete","value":"delete","description":"Delete an opportunity","action":"Delete an opportunity"},{"name":"Get","value":"get","description":"Get an opportunity","action":"Get an opportunity"},{"name":"Get Many","value":"getAll","description":"Get many opportunities","action":"Get many opportunities"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of opportunity's metadata","action":"Get an opportunity summary"},{"name":"Update","value":"update","description":"Update an opportunity","action":"Update an opportunity"}],"default":"create"},{"displayName":"Match Against","name":"externalId","type":"options","typeOptions":{"loadOptionsMethod":"getExternalIdFields","loadOptionsDependsOn":["resource"]},"required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["upsert"]}},"description":"The field to check to see if the opportunity already exists. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Value to Match","name":"externalIdValue","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["upsert"]}},"description":"If this value exists in the 'match against' field, update the opportunity. Otherwise create a new one."},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["create","upsert"]}},"description":"Required. Last name of the opportunity. Limited to 80 characters."},{"displayName":"Close Date","name":"closeDate","type":"dateTime","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["create","upsert"]}},"description":"Required. Date when the opportunity is expected to close."},{"displayName":"Stage Name or ID","name":"stageName","type":"options","typeOptions":{"loadOptionsMethod":"getStages"},"required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["create","upsert"]}},"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-examples/expressions/\">expression</a>."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["opportunity"],"operation":["create","upsert"]}},"options":[{"displayName":"Account Name or ID","name":"accountId","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getAccounts"},"description":"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-examples/expressions/\">expression</a>."},{"displayName":"Amount","name":"amount","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Estimated total sale amount"},{"displayName":"Campaign Name or ID","name":"campaignId","type":"options","typeOptions":{"loadOptionsMethod":"getCampaigns"},"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-examples/expressions/\">expression</a>."},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"A description of the opportunity. Label is Contact Description. Limit: 32 KB."},{"displayName":"Forecast Category Name","name":"forecastCategoryName","type":"string","default":"","description":"It is implied, but not directly controlled, by the StageName field"},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Next Step","name":"nextStep","type":"string","default":"","description":"Description of next task in closing opportunity. Limit: 255 characters."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the opportunity. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the opportunity"},{"displayName":"Pricebook2 ID","name":"pricebook2Id","type":"string","default":"","description":"ID of a related Pricebook2 object"},{"displayName":"Probability","name":"probability","type":"number","typeOptions":{"numberPrecision":1},"default":"","description":"Percentage of estimated confidence in closing the opportunity"},{"displayName":"Type","name":"type","type":"options","default":"","options":[{"name":"Business","value":"Business"},{"name":"New Business","value":"New Business"}],"description":"Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type."}]},{"displayName":"Opportunity ID","name":"opportunityId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["update"]}},"description":"ID of opportunity that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["opportunity"],"operation":["update"]}},"options":[{"displayName":"Account Name or ID","name":"accountId","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getAccounts"},"description":"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-examples/expressions/\">expression</a>."},{"displayName":"Amount","name":"amount","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Estimated total sale amount"},{"displayName":"Campaign Name or ID","name":"campaignId","type":"options","typeOptions":{"loadOptionsMethod":"getCampaigns"},"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-examples/expressions/\">expression</a>."},{"displayName":"Close Date","name":"closeDate","type":"dateTime","default":"","description":"Required. Date when the opportunity is expected to close."},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"A description of the opportunity. Label is Contact Description. Limit: 32 KB."},{"displayName":"Forecast Category Name","name":"forecastCategoryName","type":"string","default":"","description":"It is implied, but not directly controlled, by the StageName field"},{"displayName":"Lead Source Name or ID","name":"leadSource","type":"options","typeOptions":{"loadOptionsMethod":"getLeadSources"},"default":"","description":"Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Name","name":"name","type":"string","default":"","description":"Required. Last name of the opportunity. Limited to 80 characters."},{"displayName":"Next Step","name":"nextStep","type":"string","default":"","description":"Description of next task in closing opportunity. Limit: 255 characters."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the opportunity. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the opportunity"},{"displayName":"Pricebook2 ID","name":"pricebook2Id","type":"string","default":"","description":"ID of a related Pricebook2 object"},{"displayName":"Probability","name":"probability","type":"number","typeOptions":{"numberPrecision":1},"default":"","description":"Percentage of estimated confidence in closing the opportunity"},{"displayName":"Stage Name or ID","name":"stageName","type":"options","typeOptions":{"loadOptionsMethod":"getStages"},"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-examples/expressions/\">expression</a>."},{"displayName":"Type","name":"type","type":"options","default":"","options":[{"name":"Business","value":"Business"},{"name":"New Business","value":"New Business"}],"description":"Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type."}]},{"displayName":"Opportunity ID","name":"opportunityId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["get"]}},"description":"ID of opportunity that needs to be fetched"},{"displayName":"Opportunity ID","name":"opportunityId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["delete"]}},"description":"ID of opportunity that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["opportunity"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["opportunity"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["opportunity"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getOpportunityFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Opportunity ID","name":"opportunityId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["addNote"]}},"description":"ID of opportunity that needs to be fetched"},{"displayName":"Title","name":"title","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["opportunity"],"operation":["addNote"]}},"description":"Title of the note"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["opportunity"],"operation":["addNote"]}},"options":[{"displayName":"Body","name":"body","type":"string","default":"","description":"Body of the note. Limited to 32 KB."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the user who owns the note. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["account"]}},"options":[{"name":"Add Note","value":"addNote","description":"Add note to an account","action":"Add a note to an account"},{"name":"Create","value":"create","description":"Create an account","action":"Create an account"},{"name":"Create or Update","value":"upsert","description":"Create a new account, or update the current one if it already exists (upsert)","action":"Create or update an account"},{"name":"Delete","value":"delete","description":"Delete an account","action":"Delete an account"},{"name":"Get","value":"get","description":"Get an account","action":"Get an account"},{"name":"Get Many","value":"getAll","description":"Get many accounts","action":"Get many accounts"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of account's metadata","action":"Get an account summary"},{"name":"Update","value":"update","description":"Update an account","action":"Update an account"}],"default":"create"},{"displayName":"Match Against","name":"externalId","type":"options","typeOptions":{"loadOptionsMethod":"getExternalIdFields","loadOptionsDependsOn":["resource"]},"required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["upsert"]}},"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-examples/expressions/\">expression</a>."},{"displayName":"Value to Match","name":"externalIdValue","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["upsert"]}},"description":"If this value exists in the 'match against' field, update the account. Otherwise create a new one."},{"displayName":"Name","name":"name","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["create","upsert"]}},"description":"Name of the account. Maximum size is 255 characters."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["account"],"operation":["create","upsert"]}},"options":[{"displayName":"Account Number","name":"accountNumber","type":"string","default":"","description":"Account number assigned to this account (not the unique ID). Maximum size is 40 characters."},{"displayName":"Annual Revenue","name":"annualRevenue","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Estimated annual revenue of the account"},{"displayName":"Account Source Name or ID","name":"accountSource","type":"options","typeOptions":{"loadOptionsMethod":"getAccountSources"},"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-examples/expressions/\">expression</a>."},{"displayName":"Billing City","name":"billingCity","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 40 characters."},{"displayName":"Billing Country","name":"billingCountry","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 80 characters."},{"displayName":"Billing Postal Code","name":"billingPostalCode","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 20 characters."},{"displayName":"Billing State","name":"billingState","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 80 characters."},{"displayName":"Billing Street","name":"billingStreet","type":"string","default":"","description":"Street address for the billing address of this account"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Text description of the account. Limited to 32,000 KB."},{"displayName":"Fax","name":"fax","type":"string","default":"","description":"Fax number for the account"},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"References the ID of a company in Data.com"},{"displayName":"Industry","name":"industry","type":"string","default":"","description":"The website of this account. Maximum of 255 characters."},{"displayName":"Number Of Employees","name":"numberOfEmployees","type":"number","default":""},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the account. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Parent ID","name":"parentId","type":"string","default":"","description":"ID of the parent object, if any"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the account"},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"SicDesc","name":"sicDesc","type":"string","default":"","description":"A brief description of an organization’s line of business, based on its SIC code"},{"displayName":"Type Name or ID","name":"type","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getAccountTypes"},"description":"Type of account. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Shipping City","name":"shippingCity","type":"string","default":"","description":"Details of the shipping address for this account. City maximum size is 40 characters."},{"displayName":"Shipping Country","name":"shippingCountry","type":"string","default":"","description":"Details of the shipping address for this account. Country maximum size is 80 characters."},{"displayName":"Shipping Postal Code","name":"shippingPostalCode","type":"string","default":"","description":"Details of the shipping address for this account. Postal code maximum size is 20 characters."},{"displayName":"Shipping State","name":"shippingState","type":"string","default":"","description":"Details of the shipping address for this account. State maximum size is 80 characters."},{"displayName":"Shipping Street","name":"shippingStreet","type":"string","default":"","description":"The street address of the shipping address for this account. Maximum of 255 characters."},{"displayName":"Website","name":"website","type":"string","default":"","description":"The website of this account. Maximum of 255 characters."}]},{"displayName":"Account ID","name":"accountId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["update"]}},"description":"ID of account that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["account"],"operation":["update"]}},"options":[{"displayName":"Account Number","name":"accountNumber","type":"string","default":"","description":"Account number assigned to this account (not the unique ID). Maximum size is 40 characters."},{"displayName":"Account Source Name or ID","name":"accountSource","type":"options","typeOptions":{"loadOptionsMethod":"getAccountSources"},"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-examples/expressions/\">expression</a>."},{"displayName":"Annual Revenue","name":"annualRevenue","type":"number","typeOptions":{"numberPrecision":2},"default":"","description":"Estimated annual revenue of the account"},{"displayName":"Billing City","name":"billingCity","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 40 characters."},{"displayName":"Billing Country","name":"billingCountry","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 80 characters."},{"displayName":"Billing Postal Code","name":"billingPostalCode","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 20 characters."},{"displayName":"Billing State","name":"billingState","type":"string","default":"","description":"Details for the billing address of this account. Maximum size is 80 characters."},{"displayName":"Billing Street","name":"billingStreet","type":"string","default":"","description":"Street address for the billing address of this account"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Text description of the account. Limited to 32,000 KB."},{"displayName":"Fax","name":"fax","type":"string","default":"","description":"Fax number for the account"},{"displayName":"Industry","name":"industry","type":"string","default":"","description":"The website of this account. Maximum of 255 characters."},{"displayName":"Jigsaw","name":"jigsaw","type":"string","default":"","description":"References the ID of a company in Data.com"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Name of the account. Maximum size is 255 characters."},{"displayName":"Number Of Employees","name":"numberOfEmployees","type":"number","default":""},{"displayName":"Owner Name or ID","name":"ownerId","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"The owner of the account. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Parent ID","name":"parentId","type":"string","default":"","description":"ID of the parent object, if any"},{"displayName":"Phone","name":"phone","type":"string","default":"","description":"Phone number for the account"},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"SicDesc","name":"sicDesc","type":"string","default":"","description":"A brief description of an organization’s line of business, based on its SIC code"},{"displayName":"Shipping City","name":"shippingCity","type":"string","default":"","description":"Details of the shipping address for this account. City maximum size is 40 characters."},{"displayName":"Shipping Country","name":"shippingCountry","type":"string","default":"","description":"Details of the shipping address for this account. Country maximum size is 80 characters."},{"displayName":"Shipping Postal Code","name":"shippingPostalCode","type":"string","default":"","description":"Details of the shipping address for this account. Postal code maximum size is 20 characters."},{"displayName":"Shipping State","name":"shippingState","type":"string","default":"","description":"Details of the shipping address for this account. State maximum size is 80 characters."},{"displayName":"Shipping Street","name":"shippingStreet","type":"string","default":"","description":"The street address of the shipping address for this account. Maximum of 255 characters."},{"displayName":"Type Name or ID","name":"type","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getAccountTypes"},"description":"Type of account. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Website","name":"website","type":"string","default":"","description":"The website of this account. Maximum of 255 characters."}]},{"displayName":"Account ID","name":"accountId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["get"]}},"description":"ID of account that needs to be fetched"},{"displayName":"Account ID","name":"accountId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["delete"]}},"description":"ID of account that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["account"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["account"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["account"],"operation":["getAll"]}},"options":[{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"},{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getAccountFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]}]},{"displayName":"Account ID","name":"accountId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["addNote"]}},"description":"ID of account that needs to be fetched"},{"displayName":"Title","name":"title","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["account"],"operation":["addNote"]}},"description":"Title of the note"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["account"],"operation":["addNote"]}},"options":[{"displayName":"Body","name":"body","type":"string","default":"","description":"Body of the note. Limited to 32 KB."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API"},{"displayName":"Owner Name or ID","name":"ownerId","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the user who owns the note. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["search"]}},"options":[{"name":"Query","value":"query","description":"Execute a SOQL query that returns all the results in a single response","action":"Perform a query"}],"default":"query"},{"displayName":"Query","name":"query","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["search"],"operation":["query"]}},"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."},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["case"]}},"options":[{"name":"Add Comment","value":"addComment","description":"Add a comment to a case","action":"Add a comment to a case"},{"name":"Create","value":"create","description":"Create a case","action":"Create a case"},{"name":"Delete","value":"delete","description":"Delete a case","action":"Delete a case"},{"name":"Get","value":"get","description":"Get a case","action":"Get a case"},{"name":"Get Many","value":"getAll","description":"Get many cases","action":"Get many cases"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of case's metadata","action":"Get a case summary"},{"name":"Update","value":"update","description":"Update a case","action":"Update a case"}],"default":"create"},{"displayName":"Type Name or ID","name":"type","type":"options","required":true,"typeOptions":{"loadOptionsMethod":"getCaseTypes"},"displayOptions":{"show":{"resource":["case"],"operation":["create"]}},"default":"","description":"The type of case. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["case"],"operation":["create"]}},"options":[{"displayName":"Account ID","name":"accountId","type":"string","default":"","description":"ID of the account associated with this case"},{"displayName":"Contact ID","name":"contactId","type":"string","default":"","description":"ID of the associated Contact"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"A text description of the case. Limit: 32 KB."},{"displayName":"Is Escalated","name":"isEscalated","type":"boolean","default":false,"description":"Whether indicates whether the case has been escalated (true) or not"},{"displayName":"Origin Name or ID","name":"origin","type":"options","typeOptions":{"loadOptionsMethod":"getCaseOrigins"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getCaseOwners"},"default":"","description":"The owner of the case. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Parent ID","name":"ParentId","type":"string","default":"","description":"The ID of the parent case in the hierarchy. The label is Parent Case."},{"displayName":"Priority Name or ID","name":"priority","type":"options","typeOptions":{"loadOptionsMethod":"getCasePriorities"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Reason Name or ID","name":"reason","type":"options","typeOptions":{"loadOptionsMethod":"getCaseReasons"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Status Name or ID","name":"status","type":"options","typeOptions":{"loadOptionsMethod":"getCaseStatuses"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Subject","name":"subject","type":"string","default":"","description":"The subject of the case. Limit: 255 characters."},{"displayName":"Supplied Company","name":"suppliedCompany","type":"string","default":"","description":"The company name that was entered when the case was created. This field can't be updated after the case has been created.."},{"displayName":"Supplied Email","name":"suppliedEmail","type":"string","default":"","description":"The email address that was entered when the case was created. This field can't be updated after the case has been created."},{"displayName":"Supplied Name","name":"suppliedName","type":"string","default":"","description":"The name that was entered when the case was created. This field can't be updated after the case has been created."},{"displayName":"Supplied Phone","name":"suppliedPhone","type":"string","default":"","description":"The phone number that was entered when the case was created. This field can't be updated after the case has been created."}]},{"displayName":"Case ID","name":"caseId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["case"],"operation":["update"]}},"description":"ID of case that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["case"],"operation":["update"]}},"options":[{"displayName":"Account ID","name":"accountId","type":"string","default":"","description":"ID of the account associated with this case"},{"displayName":"Contact ID","name":"contactId","type":"string","default":"","description":"ID of the associated Contact"},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"A text description of the case. Limit: 32 KB."},{"displayName":"Is Escalated","name":"isEscalated","type":"boolean","default":false,"description":"Whether the case has been escalated (true) or not"},{"displayName":"Origin Name or ID","name":"origin","type":"options","typeOptions":{"loadOptionsMethod":"getCaseOrigins"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getCaseOwners"},"default":"","description":"The owner of the case. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Parent ID","name":"ParentId","type":"string","default":"","description":"The ID of the parent case in the hierarchy. The label is Parent Case."},{"displayName":"Priority Name or ID","name":"priority","type":"options","typeOptions":{"loadOptionsMethod":"getCasePriorities"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Reason Name or ID","name":"reason","type":"options","typeOptions":{"loadOptionsMethod":"getCaseReasons"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Record Type Name or ID","name":"recordTypeId","type":"options","description":"Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>","typeOptions":{"loadOptionsMethod":"getRecordTypes"},"default":""},{"displayName":"Status Name or ID","name":"status","type":"options","typeOptions":{"loadOptionsMethod":"getCaseStatuses"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Subject","name":"subject","type":"string","default":"","description":"The subject of the case. Limit: 255 characters."},{"displayName":"Supplied Company","name":"suppliedCompany","type":"string","default":"","description":"The company name that was entered when the case was created. This field can't be updated after the case has been created.."},{"displayName":"Supplied Email","name":"suppliedEmail","type":"string","default":"","description":"The email address that was entered when the case was created. This field can't be updated after the case has been created."},{"displayName":"Supplied Name","name":"suppliedName","type":"string","default":"","description":"The name that was entered when the case was created. This field can't be updated after the case has been created."},{"displayName":"Supplied Phone","name":"suppliedPhone","type":"string","default":"","description":"The phone number that was entered when the case was created. This field can't be updated after the case has been created."},{"displayName":"Type Name or ID","name":"type","type":"options","typeOptions":{"loadOptionsMethod":"getCaseTypes"},"default":"","description":"The type of case. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Case ID","name":"caseId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["case"],"operation":["get"]}},"description":"ID of case that needs to be fetched"},{"displayName":"Case ID","name":"caseId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["case"],"operation":["delete"]}},"description":"ID of case that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["case"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["case"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["case"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getCaseFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Case ID","name":"caseId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["case"],"operation":["addComment"]}},"description":"ID of case that needs to be fetched"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["case"],"operation":["addComment"]}},"options":[{"displayName":"Comment Body","name":"commentBody","type":"string","default":"","description":"Text of the CaseComment. The maximum size of the comment body is 4,000 bytes. Label is Body."},{"displayName":"Is Published","name":"isPublished","type":"boolean","default":false,"description":"Whether the CaseComment is visible to customers in the Self-Service portal (true) or not (false)"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["task"]}},"options":[{"name":"Create","value":"create","description":"Create a task","action":"Create a task"},{"name":"Delete","value":"delete","description":"Delete a task","action":"Delete a task"},{"name":"Get","value":"get","description":"Get a task","action":"Get a task"},{"name":"Get Many","value":"getAll","description":"Get many tasks","action":"Get many tasks"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of task's metadata","action":"Get a task summary"},{"name":"Update","value":"update","description":"Update a task","action":"Update a task"}],"default":"create"},{"displayName":"Status Name or ID","name":"status","type":"options","required":true,"default":"","displayOptions":{"show":{"resource":["task"],"operation":["create"]}},"typeOptions":{"loadOptionsMethod":"getTaskStatuses"},"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-examples/expressions/\">expression</a>."},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["task"],"operation":["create"]}},"options":[{"displayName":"Activity Date","name":"activityDate","type":"dateTime","default":"","description":"Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone."},{"displayName":"Call Disposition","name":"callDisposition","type":"string","default":"","description":"Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Duration In Seconds","name":"callDurationInSeconds","type":"number","default":"","description":"Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Object","name":"callObject","type":"string","default":"","description":"Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Type Name or ID","name":"callType","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskCallTypes"},"description":"The type of call being answered: Inbound, Internal, or Outbound. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Contains a text description of the task"},{"displayName":"Is ReminderSet","name":"isReminderSet","type":"boolean","default":false,"description":"Whether a popup reminder has been set for the task (true) or not (false)"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the User who owns the record. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Priority Name or ID","name":"priority","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskPriorities"},"description":"Indicates the importance or urgency of a task, such as high or low. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence Type Name or ID","name":"recurrenceType","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskRecurrenceTypes"},"description":"Recurrence Type of the task. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence Instance Name or ID","name":"recurrenceInstance","type":"options","typeOptions":{"loadOptionsMethod":"getTaskRecurrenceInstances"},"default":"","description":"The frequency of the recurring task. For example, “2nd” or “3rd.”. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence Interval","name":"recurrenceInterval","type":"number","default":"","description":"The interval between recurring tasks"},{"displayName":"Recurrence Day Of Month","name":"recurrenceDayOfMonth","type":"number","default":"","description":"The day of the month in which the task repeats"},{"displayName":"Recurrence Day Of Week Mask","name":"recurrenceDayOfWeekMask","type":"number","default":"","description":"The day or days of the week on which the task repeats. This field contains a bitmask. The values are as follows: Sunday = 1 Monday = 2 Tuesday = 4 Wednesday = 8 Thursday = 16 Friday = 32 Saturday = 64 Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20."},{"displayName":"Recurrence End Date Only","name":"recurrenceEndDateOnly","type":"dateTime","default":"","description":"The last date on which the task repeats. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone."},{"displayName":"Recurrence Month Of Year","name":"recurrenceMonthOfYear","type":"options","options":[{"name":"January","value":"January"},{"name":"February","value":"February"},{"name":"March","value":"March"},{"name":"April","value":"April"},{"name":"May","value":"May"},{"name":"June","value":"June"},{"name":"July","value":"July"},{"name":"August","value":"August"},{"name":"September","value":"September"},{"name":"October","value":"October"},{"name":"November","value":"November"},{"name":"December","value":"December"}],"default":"","description":"The month of the year in which the task repeats"},{"displayName":"Recurrence Regenerated Type","name":"recurrenceRegeneratedType","type":"options","default":"","options":[{"name":"After Due Date","value":"RecurrenceRegenerateAfterDueDate"},{"name":"After Date Completed","value":"RecurrenceRegenerateAfterToday"},{"name":"(Task Closed)","value":"RecurrenceRegenerated"}],"description":"Represents what triggers a repeating task to repeat. Add this field to a page layout together with the RecurrenceInterval field, which determines the number of days between the triggering date (due date or close date) and the due date of the next repeating task in the series. Label is Repeat This Task."},{"displayName":"Recurrence Start Date Only","name":"recurrenceEndDateOnly","type":"dateTime","default":"","description":"The date when the recurring task begins. Must be a date and time before RecurrenceEndDateOnly."},{"displayName":"Recurrence TimeZone SidKey","name":"recurrenceTimeZoneSidKey","type":"string","default":"","description":"The time zone associated with the recurring task. For example, “UTC-8:00” for Pacific Standard Time."},{"displayName":"Reminder Date Time","name":"reminderDateTime","type":"dateTime","default":"","description":"Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value."},{"displayName":"Subject Name or ID","name":"subject","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskSubjects"},"description":"The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Type Name or ID","name":"type","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskTypes"},"description":"Represents Type of the task, such as Call or Meeting. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"What ID","name":"whatId","type":"string","default":"","description":"The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object."},{"displayName":"Who ID","name":"whoId","type":"string","default":"","description":"The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID."}]},{"displayName":"Task ID","name":"taskId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["task"],"operation":["update"]}},"description":"ID of task that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["task"],"operation":["update"]}},"options":[{"displayName":"Activity Date","name":"activityDate","type":"dateTime","default":"","description":"Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone."},{"displayName":"Call Disposition","name":"callDisposition","type":"string","default":"","description":"Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Duration In Seconds","name":"callDurationInSeconds","type":"number","default":"","description":"Duration of the call in seconds. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Object","name":"callObject","type":"string","default":"","description":"Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center."},{"displayName":"Call Type Name or ID","name":"callType","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskCallTypes"},"description":"The type of call being answered: Inbound, Internal, or Outbound. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Custom Fields","name":"customFieldsUi","placeholder":"Add Custom Field","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"Filter by custom fields","default":{},"options":[{"name":"customFieldsValues","displayName":"Custom Field","values":[{"displayName":"Field Name or ID","name":"fieldId","type":"options","typeOptions":{"loadOptionsMethod":"getCustomFields"},"default":"","description":"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-examples/expressions/\">expression</a>."},{"displayName":"Value","name":"value","type":"string","default":"","description":"The value to set on custom field"}]}]},{"displayName":"Description","name":"description","type":"string","default":"","description":"Contains a text description of the task"},{"displayName":"Is ReminderSet","name":"isReminderSet","type":"boolean","default":false,"description":"Whether a popup reminder has been set for the task (true) or not (false)"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the User who owns the record. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Priority Name or ID","name":"priority","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskPriorities"},"description":"Indicates the importance or urgency of a task, such as high or low. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Status Name or ID","name":"status","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskStatuses"},"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-examples/expressions/\">expression</a>."},{"displayName":"Subject Name or ID","name":"subject","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskSubjects"},"description":"The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence Day Of Month","name":"recurrenceDayOfMonth","type":"number","default":"","description":"The day of the month in which the task repeats"},{"displayName":"Recurrence Day Of Week Mask","name":"recurrenceDayOfWeekMask","type":"number","default":"","description":"The day or days of the week on which the task repeats. This field contains a bitmask. The values are as follows: Sunday = 1 Monday = 2 Tuesday = 4 Wednesday = 8 Thursday = 16 Friday = 32 Saturday = 64. Multiple days are represented as the sum of their numerical values. For example, Tuesday and Thursday = 4 + 16 = 20."},{"displayName":"Recurrence End Date Only","name":"recurrenceEndDateOnly","type":"dateTime","default":"","description":"The last date on which the task repeats. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone."},{"displayName":"Recurrence Instance Name or ID","name":"recurrenceInstance","type":"options","typeOptions":{"loadOptionsMethod":"getTaskRecurrenceInstances"},"default":"","description":"The frequency of the recurring task. For example, “2nd” or “3rd.”. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence Interval","name":"recurrenceInterval","type":"number","default":"","description":"The interval between recurring tasks"},{"displayName":"Recurrence Month Of Year","name":"recurrenceMonthOfYear","type":"options","options":[{"name":"January","value":"January"},{"name":"February","value":"February"},{"name":"March","value":"March"},{"name":"April","value":"April"},{"name":"May","value":"May"},{"name":"June","value":"June"},{"name":"July","value":"July"},{"name":"August","value":"August"},{"name":"September","value":"September"},{"name":"October","value":"October"},{"name":"November","value":"November"},{"name":"December","value":"December"}],"default":"","description":"The month of the year in which the task repeats"},{"displayName":"Recurrence Start Date Only","name":"recurrenceEndDateOnly","type":"dateTime","default":"","description":"The date when the recurring task begins. Must be a date and time before RecurrenceEndDateOnly."},{"displayName":"Recurrence Regenerated Type","name":"recurrenceRegeneratedType","type":"options","default":"","options":[{"name":"After Due Date","value":"RecurrenceRegenerateAfterDueDate"},{"name":"After Date Completed","value":"RecurrenceRegenerateAfterToday"},{"name":"(Task Closed)","value":"RecurrenceRegenerated"}],"description":"Represents what triggers a repeating task to repeat. Add this field to a page layout together with the RecurrenceInterval field, which determines the number of days between the triggering date (due date or close date) and the due date of the next repeating task in the series. Label is Repeat This Task."},{"displayName":"Recurrence Type Name or ID","name":"recurrenceType","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskRecurrenceTypes"},"description":"Website for the task. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Recurrence TimeZone SidKey","name":"recurrenceTimeZoneSidKey","type":"string","default":"","description":"The time zone associated with the recurring task. For example, “UTC-8:00” for Pacific Standard Time."},{"displayName":"Reminder Date Time","name":"reminderDateTime","type":"dateTime","default":"","description":"Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value."},{"displayName":"Type Name or ID","name":"type","type":"options","default":"","typeOptions":{"loadOptionsMethod":"getTaskTypes"},"description":"Represents Type of the task, such as Call or Meeting. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"What ID","name":"whatId","type":"string","default":"","description":"The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object."},{"displayName":"Who ID","name":"whoId","type":"string","default":"","description":"The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID."}]},{"displayName":"Task ID","name":"taskId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["task"],"operation":["get"]}},"description":"ID of task that needs to be fetched"},{"displayName":"Task ID","name":"taskId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["task"],"operation":["delete"]}},"description":"ID of task that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["task"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["task"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["task"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getTaskFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["attachment"]}},"options":[{"name":"Create","value":"create","description":"Create a attachment","action":"Create an attachment"},{"name":"Delete","value":"delete","description":"Delete a attachment","action":"Delete an attachment"},{"name":"Get","value":"get","description":"Get a attachment","action":"Get an attachment"},{"name":"Get Many","value":"getAll","description":"Get many attachments","action":"Get many attachments"},{"name":"Get Summary","value":"getSummary","description":"Returns an overview of attachment's metadata","action":"Get an attachment summary"},{"name":"Update","value":"update","description":"Update a attachment","action":"Update an attachment"}],"default":"create"},{"displayName":"Parent ID","name":"parentId","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["attachment"],"operation":["create"]}}},{"displayName":"Name","name":"name","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["attachment"],"operation":["create"]}},"description":"Required. Name of the attached file. Maximum size is 255 characters. Label is File Name."},{"displayName":"Binary Property","name":"binaryPropertyName","type":"string","default":"data","required":true,"displayOptions":{"show":{"resource":["attachment"],"operation":["create"]}},"placeholder":"","description":"Name of the binary property which contains the data for the file to be uploaded"},{"displayName":"Additional Fields","name":"additionalFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["attachment"],"operation":["create"]}},"options":[{"displayName":"Description","name":"description","type":"string","default":"","description":"Text description of the Document. Limit: 255 characters."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)"},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the User who owns the attachment. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Attachment ID","name":"attachmentId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["attachment"],"operation":["update"]}},"description":"ID of attachment that needs to be fetched"},{"displayName":"Update Fields","name":"updateFields","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["attachment"],"operation":["update"]}},"options":[{"displayName":"Binary Property","name":"binaryPropertyName","type":"string","default":"data","placeholder":"","description":"Name of the binary property which contains the data for the file to be uploaded"},{"displayName":"Description","name":"description","type":"string","default":"","description":"Text description of the Document. Limit: 255 characters."},{"displayName":"Is Private","name":"isPrivate","type":"boolean","default":false,"description":"Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)"},{"displayName":"Name","name":"name","type":"string","default":"","description":"Required. Name of the attached file. Maximum size is 255 characters. Label is File Name."},{"displayName":"Owner Name or ID","name":"owner","type":"options","typeOptions":{"loadOptionsMethod":"getUsers"},"default":"","description":"ID of the User who owns the attachment. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."}]},{"displayName":"Attachment ID","name":"attachmentId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["attachment"],"operation":["get"]}},"description":"ID of attachment that needs to be fetched"},{"displayName":"Attachment ID","name":"attachmentId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["attachment"],"operation":["delete"]}},"description":"ID of attachment that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["attachment"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["attachment"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["attachment"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getAtachmentFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["user"]}},"options":[{"name":"Get","value":"get","description":"Get a user","action":"Get a user"},{"name":"Get Many","value":"getAll","description":"Get many users","action":"Get many users"}],"default":"get"},{"displayName":"User ID","name":"userId","type":"string","required":true,"default":"","displayOptions":{"show":{"resource":["user"],"operation":["get"]}},"description":"ID of user that needs to be fetched"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"resource":["user"],"operation":["getAll"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"resource":["user"],"operation":["getAll"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Max number of results to return"},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Field","default":{},"displayOptions":{"show":{"resource":["user"],"operation":["getAll"]}},"options":[{"displayName":"Conditions","name":"conditionsUi","placeholder":"Add Condition","type":"fixedCollection","typeOptions":{"multipleValues":true},"description":"The condition to set","default":{},"options":[{"name":"conditionValues","displayName":"Condition","values":[{"displayName":"Field Name or ID","name":"field","type":"options","typeOptions":{"loadOptionsMethod":"getUserFields"},"default":"","description":"For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code-examples/expressions/\">expression</a>."},{"displayName":"Operation","name":"operation","type":"options","options":[{"name":"<","value":"<"},{"name":"<=","value":"<="},{"name":"=","value":"equal"},{"name":">","value":">"},{"name":">=","value":">="}],"default":"equal"},{"displayName":"Value","name":"value","type":"string","default":""}]}]},{"displayName":"Fields","name":"fields","type":"string","default":"","description":"Fields to include separated by ,"}]},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["flow"]}},"options":[{"name":"Get Many","value":"getAll","description":"Get many flows","action":"Get many flows"},{"name":"Invoke","value":"invoke","description":"Invoke a flow","action":"Invoke a flow"}],"default":"invoke"},{"displayName":"Return All","name":"returnAll","type":"boolean","displayOptions":{"show":{"operation":["getAll"],"resource":["flow"]}},"default":false,"description":"Whether to return all results or only up to a given limit"},{"displayName":"Limit","name":"limit","type":"number","displayOptions":{"show":{"operation":["getAll"],"resource":["flow"],"returnAll":[false]}},"typeOptions":{"minValue":1,"maxValue":500},"default":50,"description":"Max number of results to return"},{"displayName":"API Name","name":"apiName","type":"string","default":"","required":true,"displayOptions":{"show":{"resource":["flow"],"operation":["invoke"]}},"description":"Required. API name of the flow."},{"displayName":"JSON Parameters","name":"jsonParameters","type":"boolean","default":false,"displayOptions":{"show":{"resource":["flow"],"operation":["invoke"]}},"description":"Whether the input variables should be set via the value-key pair UI or JSON/RAW"},{"displayName":"Variables","name":"variablesJson","type":"json","displayOptions":{"show":{"resource":["flow"],"operation":["invoke"],"jsonParameters":[true]}},"default":"","description":"Input variables as JSON object"},{"displayName":"Variables","name":"variablesUi","placeholder":"Add Variable","type":"fixedCollection","typeOptions":{"multipleValues":true},"displayOptions":{"show":{"resource":["flow"],"operation":["invoke"],"jsonParameters":[false]}},"description":"The input variable to send","default":{},"options":[{"displayName":"Variable","name":"variablesValues","values":[{"displayName":"Name","name":"name","type":"string","default":"","description":"Name of the input variable"},{"displayName":"Value","name":"value","type":"string","default":"","description":"Value of the input variable"}]}]}],"codex":{"categories":["Sales","Communication"],"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.salesforce/"}],"credentialDocumentation":[{"url":"https://docs.n8n.io/credentials/salesforce"}]}},"iconUrl":"icons/n8n-nodes-base/dist/nodes/Salesforce/salesforce.svg"},