mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Add example how to read version in node-code for custom logic
This commit is contained in:
parent
fa5a0db4c8
commit
344216e4ba
|
@ -213,7 +213,9 @@ export class Set implements INodeType {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
newItem.json.versionTest = this.getNodeParameter('versionTest', itemIndex);
|
|
||||||
|
newItem.json.versionFromParameter = this.getNodeParameter('versionTest', itemIndex);
|
||||||
|
newItem.json.versionFromNode = this.getNode().typeVersion;
|
||||||
|
|
||||||
returnData.push(newItem);
|
returnData.push(newItem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue