From 51f43b8e61ecfdfb3460f1c4959b787538aeda76 Mon Sep 17 00:00:00 2001 From: Nicholas Penree Date: Wed, 29 Jun 2022 10:38:27 -0400 Subject: [PATCH] Support custom records on the insert record operation --- nodes/NetSuite/NetSuite.node.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/NetSuite/NetSuite.node.ts b/nodes/NetSuite/NetSuite.node.ts index 297e06e..8f17993 100644 --- a/nodes/NetSuite/NetSuite.node.ts +++ b/nodes/NetSuite/NetSuite.node.ts @@ -268,7 +268,7 @@ export class NetSuite implements INodeType { static async insertRecord(options: INetSuiteOperationOptions): Promise { const { fns, credentials, itemIndex, item } = options; const apiVersion = fns.getNodeParameter('version', itemIndex) as string; - const recordType = fns.getNodeParameter('recordType', itemIndex) as string; + const recordType = NetSuite.getRecordType(options); const query = item ? item.json : undefined; const requestData: INetSuiteRequestOptions = { method: 'POST', diff --git a/package.json b/package.json index 4653f92..b1bbae1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-nodes-netsuite", - "version": "0.7.0", + "version": "0.7.2", "description": "n8n node for NetSuite using the REST API", "license": "MIT", "homepage": "https://github.com/drudge/n8n-nodes-netsuite",