SuiteScript 2.1 Flashcards

1
Q

What is a portlet script useful for?

A

Portlet scripts are used to create custom portlets that can be displayed on the dashboard or any page that allows custom portlets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

RESTlet transfer time for big data transfer runs around 5 seconds or more. How can performance be improved?

A

Through compression.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do we use custom modules for?

A

Building and accessing additional customised API fuctionality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we utilise external JS libraries?

A

Define them as a custom module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where are execution log details displayed for SuiteScript 2.0 and 1.0 scripts when debugging?

A

They are displayed in the execution log tab.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What script module can be used to aid in debugging?

A

the N/log module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the APM Tool: Page Time Summary used for?

A

You can use the Page Time Summary page to measure the performance of user event scripts, client scripts, and workflows and quickly identify customizations that take an unusually long time to run.
Page Time Summary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What form of debugging can only be used for SuiteScript 2.0 and 1.0 scripts with no script deployment or record?

A

Ad-hoc, on demand debugging found at Customization > Scripting > Script Debugger

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What script status is required for the SuiteScript 2.1 debugger tool to function?

A

The script must be in the testing status.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the APM tool: Concurrency Monitor used for?

A

Monitor the performance of web services and RESTlet integrations in your account. The tool includes two dashboards that provide different levels of information that you can use to investigate. You can view a different display depending on the governance type that applies to your account.

Concurrency Monitor Overview

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the APM Tool: Record Page Monitor used for?

A

It is used to identify & troubleshoot the performance of record pages.

Record Pages Monitor lets you monitor the performance of your record pages. Visual indicators alert you to performance issues and anomalies, which you can investigate by using the portlets and quick links.

APM: Monitoring Record Pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How would you display information related to custom errors created using the N/error module?

A

Using script logic, such as the N/log module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does SuiteScript work well with native JS?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Where are execution log details displayed for SuiteScript 2.1 scripts when debugging?

A

They are displayed in the console tab of the Chrome DevTools debugging window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is one negative aspect to compressing data when transferring through a RESTlet and how can we overcome it?

A

We can lose certain portions of data when compressing, however this can be solved by using an external JS Library such as Deflate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the APM tool: Search Performance Analysis used for?

A

The Search Performance Analysis dashboard is a visual tool for monitoring multiple saved searches on one page. The dashboard presents saved searches in the form of tiles, which contains helpful metrics updated in real time. You can use this tool to quickly identify saved search performance issues and anomalies. Looking at the dashboard also lets you promptly compare statistics between various saved searches.To monitor the performance of multiple saved searches and identify potential issues

Using the Search Performance Analysis dashboard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What should you do with the RESTlet cookies once acquired?

A

They must be set in your client application and then the request must be sent.
debugging a RESTlet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the APM tool: SuiteCloud Processors Monitor used for?

A

It is used to monitor the performance of map/reduce and scheduled script jobs.

Using SuiteCloud Processors Monitor Dashboard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

When scripting, what object / overloaded function is required to use custom modules?

A

The Define object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does a RESTlet script do?

A

Export or import data to & from NetSuite and can be used to customise the behaviour of a page within NetSuite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Are errors created via the N/error module automatically logged?

A

No, the module is only used to create custom errors, not display them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

When should you use a RESTlet?

A

RESTlets can be useful when you want to bring data into NetSuite from another system, or if you want to extract data from NetSuite. RESTlets can also be used in combination with other scripts to customize the behavior of a page within NetSuite.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What types of scripts is the SuiteScript 2.1 debugging tool able to debug? (3 total)

A

Scheduled Scripts
Suitelets
User Events

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is required to display a portlet created via a portlet script?

A

A custom portlet must be added and then configured to display the portlet script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the APM tool: Page Time Details used for?
It gives information relating to a specific operation during a specific date & time. Enter Operation ID to get the info or Click Page Time Details from specific line in Page Time Summary. [Page Time Details](https://suiteanswers.custhelp.com/app/answers/detail/a_id/44072)
26
What are 2 limitations of the APM tool: Profiler Details?
- It cannot display information about client scripts - It can only log operations that have customisations
27
If we require progressive loading of dependencies, which of the Define or Require objects do we need?
We need to use the Require object to progressively load dependencies
28
What is the APM tool: Profiler Details used for?
Gather performance data about the timing and context of an operation, action, or request. You can use this tool to determine which operations cause delays. Profiler Details logs only the scripts that ran for a significant amount of time and are useful in diagnosing issues. It is not intended to trace all the scripts and plug-ins that the account processed. [Profiler Details Overview](https://suiteanswers.custhelp.com/app/answers/detail/a_id/84255/loc/en_US)
29
What external JS library can we use to convert date/times from one zone to another?
The Moment Timezone library
30
Where can a RESTlet be called?
Both within NetSuite and from an external application
31
What three main pros are there to using custom modules?
- We can group reusable functions into a common library file - We can import third party API's - We can add them to SuiteApps and expose them to third parties
32
What is the APM tool: REST Web Services Analysis used for?
REST Web Services Analysis lets you monitor the performance of REST web services operations. It provides information about **top REST web services operations, users, requests, error statistics, and execution timings**. [REST Web Services Analysis Overview](https://suiteanswers.custhelp.com/app/answers/detail/a_id/99093/loc/en_US)
33
Can the SuiteScript 2.1 debugging tool be used to debug client side scripts?
No
34
What is a Suitelet script useful for?
It is used to create a custom pages within NetSuite and perform backend processing. Once deployed A link to the suitelet can be added to any page menu.
35
What is a potential positive to using external libraries when developing a script?
They can be utilised to improve performance
36
When debugging RESTlets, why is it important to remove the HTTP authorisation header?
Because this can cause issues preventing the debugger from working. [Debugging RESTlet](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_162015275927.html#procedure_N2980323)
37
When importing modules using a relative path which of the Define or Require objects do we need?
Define is required to import modules using a relative path
38
Since a custom module will not have a script record, where would we find it?
They must be uploaded to the file cabinet
39
When importing modules using an absolute path which of the Define or Require objects do we need?
Require
40
What is the N/log module used for?
It is used to log script execution details.
41
What is the purpose of the N/error module?
It is used to create custom SuiteScript errors.
42
In order to step through code in the SuiteScript debugger, which of the Define or Require objects do we need?
Require is necessary to step through code in the SuiteScript Debugger
43
How will ad-hoc debugging affect the environment being used for testing?
The scripts being tested will affect the environment being tested in. Therefore it is best not to do this in production accounts.
44
When building a test framework, which of the Define or Require objects do we need?
Require supports building a test framework
45
When exporting modules which of the Define or Require objects do we need?
Define is required to export modules
46
Can you receive errors via email when debugging?
No, the email error notifications are disabled when debugging.
47
When should we use a scheduled script over a map/reduce?
When the order in which data is being processed is important as scheduled script runs sequentially.
48
What is the APM tool: Search Performance Details used for?
Provides you with more **in-depth statistics about the performance of each saved search.** The dashboard consists of two portlets and provides summary lists, charts, and logs about a specific saved search. It can be used for gathering data during performance reviews and critical investigations. [Using Search Performance Details Dashboard](https://suiteanswers.custhelp.com/app/answers/detail/a_id/67418/loc/en_US)
49
How would you get the cookies pertaining to your RESTlet during debugging?
After selecting the RESTlet script in the debugger, the RESTlet's cookies will be displayed. [debugging restlet](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_162015275927.html#procedure_N2980323)
50
True of False? Map/Reduce scripts are only available in SS 2.0 and 2.1
True, they are not available in SS1.0
51
The SuiteScript 2.1 debugger tool can only debug scripts that have been what?
Scripts that have been deployed (Deployed mode), and scripts that have no script record (On Demand).
52
What script types can the N/error module be used in?
Server side scripts only, excluding User Events.
53
When debugging deployed scripts in SuiteScript 2.0 or 1.0 what 2 fields must be set to what values on the script and deployment record respectively?
The owner field on the script record must be set to the current account. The status field on the deployment record must be set to "Testing"
54
When creating scripts with an entry point which of the Define or Require objects do we need?
We require the Define object to utilise entry points in a script
55
What must the "Define" method be changed to when ad-hoc debugging?
Define must be changed to "Require"
56
If N/log is used on a client script deployed to a form, where will those logs be available for viewing?
They will appear on the relevant deployment record.
57
The N/error module can be used in User Event Scripts, but what is the issue of it's use?
The N/error module can create custom errors in User Event scripts, however the error object itself cannot be used. Making it redundant. [N/error](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4243798608.html#bridgehead_4243798821)
58
How would one debug client side scripts?
Using debugging tools available in the browser, such as the console. The script must include the "debugger" statement.
59
How many logs is an account allowed to make across all scripts?
100,000
60
What makes a Map/Reduce script optimal for large data sets?
A Map/Reduce gets data, sets up key/value pairs for each result and processes them individually. The process can be done concurrently reducing the processing time.
61
When creating new modules which of the Define or Require objects do we need?
Define is required when creating new modules
62
SuiteTalk SOAP & REST web services integrations can trigger Client & Server side scripts, as well as Workflows but only under one condition, what is it?
The execution context of the script or workflow must include "Web Services"
63
What is the APM tool: SOAP Web Services Analysis used for?
It is used to monitor the performance of top SOAP Web Services operations and record processing [SOAP Web Services Analysis Overview ](https://suiteanswers.custhelp.com/app/answers/detail/a_id/99091)
64
How many scripts can be debugged at a time using the SuiteScript 2.1 debugger tool?
Only 1, regardless of version.
65
What can only be used to debug SuiteScript 2.1 Scripts?
SuiteScript 2.1 Debugger Tool
66
What is the usage limit on all script types when debugging?
1000
67
What happens when a map/reduce exceeds a specified yield time, or governance?
The map/reduce will automatically pause and reschedule themselves to be run later.
68
What is the APM tool: SuiteScript Analysis used for?
You can use SuiteScript Analysis to learn about when a script was installed and how it performed in the past. You can also view the timing of execution for locked scripts that came with a bundle. [Analyzing Scripts](https://suiteanswers.custhelp.com/app/answers/detail/a_id/44054)
69
When using bundle installation scripts, what is one limitation when it comes to modules?
Custom modules are not supported
70
How many days are logs permitted to exist before being purged?
30 days
71
Suitelets are only available once it is deployed, true or false?
True
72
When should we use a Map/Reduce script?
A Map/Reduce should be used when large amounts of data require processing