New 2.0 functionality non-existent in 1.0

With this week’s theme of introducing SuiteScript 2.0, I wanted to briefly mention some brand new functionality 2.0 brings that is non-existent in 1.0.

Map/Reduce Scripts

2.0 introduces a brand new script type called “Map/Reduce” that can be used for faster bulk processing. This by far is my favorite feature of 2.0; no longer do I have to write Scheduled Scripts that keep track of what has been processed and monitors its own governance to reschedule itself. Map/Reduce scripts are an amazing replacement for bulk processing in Scheduled Scripts. They automatically utilize multiple queues to process data in parallel, and you rarely need to concern yourself with governance usage. Map/Reduce scripts will most certainly get their own week here on Effective SuiteScript some time in the future.

N/sftp

A very interesting module indeed that lets you establish secure FTP connections to external servers. You can then either upload to or download from the external server for file manipulation/storage in NetSuite.

N/https

This module specifically helps you manage calls to HTTPS endpoints while disallowing HTTP calls.

N/util

The N/util module is a handy utility module that adds some interesting tools. There’s an each method for array iteration, various type-checking methods, and an extend method for copying the properties from one object to another.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Related posts

January 7, 2021

Anything I wrote today about business would both feel and be inadequate. I simply can’t arrive at the words to express how I feel in this moment. So instead, here are a few helpful ...

Read More

December 20, 2020

2020 was a hundred swift kicks to the shorts and one giant kick in the ass. If you’ve lost people you love, if you’ve gotten sick or hurt, if you’ve lost your job, if ...

Read More

December 16, 2020

“I’ve been meaning to learn SuiteScript, but it’s hard to find the time …”“We’re slammed, and I just don’t have the time …”“I haven’t made the time …” All are variations of a theme ...

Read More

December 14, 2020

Last week we looked at mimicking the functionality of a REST endpoint with its own module (e.g. retrieving a User, or a list of Users, refreshing a token, etc). For complex integrations that rely on a large ...

Read More