npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@squaregrove/n8n-nodes-nsrestlet

v0.1.2

Published

This package allows for a "single-node" method of connecting your n8n instance with your NetSuite Restlet

Downloads

8

Readme

Banner image

n8n-nodes-nsrestlet

n8n is a fair-code licensed workflow automation platform.

Installation
Credentials
Usage
Compatibility
Resources

Installation

Installation instructions for installing/deleting/updating community nodes your n8n instance can be found here. Our npm package name is @squaregrove/n8n-nodes-nsrestlet .

Credentials

Set up credentials in Netsuite using the following steps

  1. Create an integration record

    • Go to Setup > Integration > Manage Integrations > New.

    • Check the box for Token-Based Authentication.

    IMPORTANT - After you click Save, make sure you take note of the Consumer Key and Consumer Secret. This is the only time you will be able to get those, so if you don't copy them down then a new integration record will need to be created. You will use these later on in n8n.

  2. Create an access token

    • Go to Setup > Users/Roles > Access Tokens.

    • On the Access Tokens page, click New Access Token.

    • Select the Application Name from the dropdown which will be the same name you chose for your integration record in step 1. Also fill out the User, Role, and adjust the Token Name if you want before clicking Save.

    IMPORTANT - After you click Save, make sure you take note of the Token ID and Token Secret. This is the only time you will be able to get those, so if you don't copy them down then a new access token will need to be generated. You will use these later on in n8n.

  3. Set up a restlet script record

    • Go to Customization > Scripting > Scripts > New, and then select RESTlet as the script type.

    • Enter a name and select the script file. An example starter script can be found here.

    • Copy-paste the script's function names in their respective places depending on the method used to call the function (i.e. - handleGetRequest, handlePostRequest, handlePutRequest, handleDeleteRequest) and click Save.

    • Click Deploy Script. Here you will also need to set the Status to Released, and we recommend setting the Log Level to Debug. Click Save.

    IMPORTANT - Take a note of the External URL that gets generated on the confirmation screen. You will use this later on in n8n.

  4. The only other value you will need is your Netsuite Account ID - This will be the number that appears at the beginning of your Netsuite URLs. These are typically 7 digit numbers and can be seen at the beginning of every URL in your environment.

Usage

  1. Create your credentials in n8n by finding the NSRestletCreds credential in the credential manager and inputting the following fields that you noted down from the prerequisites section.

    Consumer Key
    Consumer Secret
    Token ID
    Token Secret
    NetSuite Account

  2. Add the NSRestlet node to your workflow and specify the credentials you set up in the last step, along with the Restlet URL which you should have noted down from step 3 of the prerequisites above.

  3. Finally, specify the method that you are using to call your restlet. GET and DELETE will both use Query Parameters to communicate with Netsuite, where the POST and PUT will use the Body.

Note - Until you build out your restlet more on the Netsuite end, making these calls will just return a success message of "sample response data".

Compatability

This node has been installed/tested on the most recent production release of n8n at the time of writing [email protected]. There are no known compatability issues with previous versions.

Resources