SharpSync
  • Welcome
  • Fundamentals
    • Getting Started
      • Registration
      • Landing Page
      • Support
      • Subscription
    • Data Sources
    • Property Mappings
      • Adding Property Mapping
      • Property Mapping Settings
    • Rules
      • Import / Export
        • Append text
        • Calculate number
        • Export manipulation
        • Format as decimal number
        • Prepend text
        • Remove property
        • Replace all instances
        • Replace first instance
        • Round to nearest X
        • Select from JSON
        • Set cell value
        • Set empty cells
        • Text manipulation
      • Display
        • Number between
        • Text contains
        • Text ends with
        • Text evaluation
        • Text is a number
        • Text is exactly
        • Text is in list
        • Text is not a number
        • Text is not empty
        • Text is not in list
        • Text length between
        • Text length is exactly
        • Text maximum length
        • Text minimum length
        • Text not contains
        • Text not ends with
        • Text not starts with
        • Text starts with
      • Advanced Scripting
    • BOM Comparison
    • Data Safety
    • Troubleshooting
      • Duplicate component paths
      • OAuth 2.0
  • Data Sources
    • Autodesk Inventor
    • CSV
      • Getting Started
      • Importing a Bill of Materials (BOM)
    • MS Dynamics 365 Business Central
      • Getting Started
      • Item Fields Json & Internal Names
      • Resource Fields Json & Internal Names
      • List Names For nestedObject Mappings
    • NetSuite
      • OAuth Setup
        • Permissions
      • RESTlet Script Setup
        • SharpSync RESTlet Script
      • Thumbnail Folder Setup
      • Authentication + Configuration
      • Common setup
        • Configure quantity mapping
        • Configure accounts mappings
        • Configure itemType mapping
        • Configure isPhantom mapping
        • Configure subsidiary mapping
        • Configure price mapping
        • Configure Where Used Link mapping
        • Configure thumbnail mapping
        • Read-Only NetSuite Fields
        • Common Mapping Rules
        • Common List names
      • Advanced Bill of Materials
      • Configure Routings
      • Integration tips
      • Troubleshooting
    • Odoo
      • Getting Started
        • Authentication + Configuration
        • Debugging tips
      • Common Setup
        • Map BOM Codes
        • Map BOM Types
        • Map Attribute Values
          • Reading Attributes - Overview
          • Display All Attribute Names
          • Display Single Attribute Values
          • Writing attributes
      • Product Management
      • Hosting Options
      • List Names
      • Permissions
      • Troubleshooting
    • Onshape
      • Getting Started
      • Setting up Derivatives
    • Propel PLM
      • Getting Started
    • SolidWorks
    • SolidWorks PDM
      • Downloading and installing the add-in
      • Configure the add-in
      • Setting up the Solidworks PDM Web 2
      • Troubleshooting
      • Submitting a BOM for update
  • Advanced
    • Derivatives
  • User management
    • User Management
    • Application Permissions
Powered by GitBook
On this page
  • SuiteAPI Overview
  • Original Source
  1. Data Sources
  2. NetSuite

RESTlet Script Setup

PreviousPermissionsNextSharpSync RESTlet Script

Last updated 6 days ago

SuiteAPI Overview

SuiteAPI is an open source, alternative Web API for the NetSuite platform. It makes it easy for developers to integrate with NetSuite, regardless of the type of application that they're developing or the technology they're developing it with.

SharpSync has developed its own script based on the SuiteAPI open source code. You can follow the below steps to setup your NetSuite instance to use the SharpSync RESTlet script:

Step: Save The SharpSync Script Locally

  • See

Step: Upload Script File To NetSuite

  • In NetSuite Navigate to Documents > Files > File Cabinet, select the system folder called SuiteScripts

  • Click on the New Folder button again

    • Folder name: SharpSync

    • Subfolder of: SuiteScripts

    • Type Documents and Files

    • Click Save

  • With the SharpSync folder selected in NetSuite, click Add File

  • Select the sharpsync-restlet-script.js file saved from the previous step

Step: Create Script Deployment Record

  • Navigate to Setup > Customization > Scripts > New

or

  • Navigate to Customization > Scripting > Scripts > New

  • In the Script file entry, enter sharpsync-restlet-script.js

  • Click Create Script Record

  • On the new form enter the values:

    • Name: SharpSyncRESTletScript

    • ID: sharpsync-restlet-script

    • Description: Restlet for uploading files and thumbnails for SharpSync and creating items for advanced BOMS

  • Click on the Deployments tab at the bottom and in the first row set

    • Title: SharpSyncRESTletScriptDeployment

    • ID: harpsync-restlet-script-deployment

    • Deployed: Yes

    • Status: Change from Testing to Released

  • Click Save

  • Click the Deployments tab

  • Click on the title of the deployment (SharpSyncRESTletScriptDeployment)

  • Click Edit to edit the deployment

  • Make sure you have checked the following audiences:

    • Audience --> Roles --> All Roles

    • Audience --> Roles --> All Employees

  • Click Save

  • Take note of the External URL. It will look something like this:

  • https://{companyId}.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=925&deploy=1

  • Make sure to save the scriptId and deploymentId in the above url for later use

You are now done configuring the script in NetSuite.

Original Source

If for some reason the website below is unavailable, a copy of the Suite API zip file can be found here: SuiteAPI-v2022.1.zip

SharpSync's script was developed based on the original work by .

See Also

SharpSync RESTlet Script
Tim Dietrich
SuiteAPI
5KB
SuiteAPI-v2022.1.zip
archive
Suite API zip