docs

NetSuite Setup of Thumbnail folder

To successfully upload thumbnails to NetSuite, you need the following 3 things:

Steps involved in setting up NetSuite:


Setup OAuth

Goal: To get the the necessary permissions to upload files

Steps required:

See NetSuite OAuth Setup


Setup restlet for uploading thumbnails (SuiteApi)

Steps required:

See Setup restlet for uploading thumbnails (SuiteApi) Original source Suite API Setup


Setup an upload folder

Goal: To get a folder id

Steps required:

See Setup an upload folder See Create an upload folder

Putting it all together - Setup the datasource

Goal: To configure the datasource in SharpSync

Steps required:

With the copied URL in the previous step, and the folderId and scriptId in hand, it’s time to setup the datasource in SharpSync.

In SharpSync add a new data source > NetSuite.

Configuring NetSuite

There are 2 configuration sections for each datasource

Authentication

BOM Configuration

| Name | Description | Recommended value | | —————————— | —————————————————————————————————————————————– | ——————————————————————————————————————————————————————————————— | | Top level assembly column name | When querying the data you may use this value to identify assemblies (optional) | itemid | | SuiteQL BOM Query | The query used to select data using SuiteQl | SELECT ItemID, id, displayName FROM Item WHERE ItemID = '{uniquePartNumber}'. Note that the place holder {uniquePartNumber} must stay as this is used to find items related to assemblies | | Servlet URL | The url of the servlet where thumbnails will be uploaded. Optional but recommented. If specified, include the folderId param at the end | https://{companyId}.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=2943&deploy=1&folderId={folderId} | | Thumbnail column name | The column to update in NetSuite using the file ID of the uploaded thumbnail | custitem_mycol_image |

``/app/site/hosting/restlet.nl?script={yourScriptId}&deploy=1&folderId={folderId}

e.g.

``/app/site/hosting/restlet.nl?script=2743&deploy=1&folderId=19578359

See also