n8n-nodes-applymap
v0.1.0
Published
A node to map values.
Downloads
43
Maintainers
Keywords
Readme
n8n-nodes-applymap
This is an n8n community node. It lets you easily map data. For example an Id to a string value. Normally this would be done by using a merge or function/code node. This community node makes it a lot simpler.
If you find any issues with the node please open an issue on Github.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Operations
You can map data and also provide a default value for when there was no value found in the mapping table. The first input is the data going through your n8n workflow. The second input is the mapping table. This table consists of a 3 fields:
- mapName
- input
- output
The mapName is used in the parameters of the mapping, this makes it so you can have multiple mappings done in one go. For this it is important that every map has its unique name.
The input is the input value so for example an Id, to be mapped.
The output is the output value that has to replace the input value when it is found.
Each map is made by converting to string and then matching the values. This should make it easier to apply the maps in most cases. If there are any troubles with this please open an issue in github.
Keep in mind that this mapping table needs to be formatted exactly like this for it to work.
You can configure the node to do what you need it to do. An example is provided below.
Keep in mind that you do not use expressions for setting these values unless you have a specific reason to do so. Also keep in mind to use the correct Capitalization.
Compatibility
This node was developed and tested with n8n version 0.195.5
Resources
Version history
Only 1 version