This is the a extension for Suite Script snippets.
Extension support
Supports files with following extensions.
Extensions
Language
.ss
SuiteScript
.js
JavaScript
Features
Covers all templates required for generating Suite Script extensions files.
Following table describes all the snippets and their respective description.
Snippet
Description
service.ss
Generates a service.ss file.
ss2.model.view
Generates a SS2 model file.
scview.view
Generates a SC View template file.
handlebar.helper.view
Generates a handlebar helper file.
pagetype.view
Generates a page type view.
singleton.view
Generates a singleton file.
search.create
Creates a search.
search.load
Loads a search.
search.load.paged
Loads a search with pagination.
search.delete
Deletes a existing search.
record.create
Creates a record.
record.create.promise
Creates a record with a promise.
record.load
Loads a record.
record.load.promise
Loads a record with a promise.
record.transform
Transforms a record.
record.transform.promise
Transforms a record with a promise.
query.create
Creates a comprehensive query.
query.create.paged
Creates a query with pagination.
query.runSuiteQLPaged
Creates a query with sql command.
query.delete
Deletes a query.
query.load
Loads a existing query.
script.user.event
Creates a user event script.
script.bundle.installation
Creates a bundle installation script.
script.client.script
Creates a client script.
script.map.reduce
Creates a map reduce script.
script.mass.update
Creates a mass update script.
script.scheduled.script
Creates a scheduled script.
script.workflow.action
Creates a workflow action script.
try.catch
Creates a SuiteScript TryCatch block.
for.loop
Creates a for loop.
log.error
Logs a message of error type.
log.debug
Logs a message of debug type.
log.audit
Logs a message of audit type.
log.emergency
Logs a message of emergency.
Release Notes
1.0.0
Initial release of Suite Script Snippets.
Contains snippets for:
Page templates for extensions and it's modules.
N/Search Module.
N/record Module.
N/query Module.
SuiteScript Scripts.
Try Catch block, For loop, Basic SuiteScript logs.