SuiteScript 2.1 Flashcards

1
Q

What can only be used to debug SuiteScript 2.1 Scripts?

A

SuiteScript 2.1 Debugger Tool

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

The SuiteScript 2.1 debugger tool can only debug scripts that have been what?

A

Scripts that have been deployed (Deployed mode), and scripts that have no script record (On Demand).

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

How many scripts can be debugged at a time using the SuiteScript 2.1 debugger tool?

A

Only 1, regardless of version.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
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
6
Q

Can the SuiteScript 2.1 debugging tool be used to debug client side scripts?

A

No

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

How would one debug client side scripts?

A

Using debugging tools available in the browser, such as the console.
The script must include the “debugger” statement.

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

How will ad-hoc debugging affect the environment being used for testing?

A

The scripts being tested will affect the environment being tested in. Therefore it is best not to do this in production accounts.

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

What must the “Define” method be changed to when ad-hoc debugging?

A

Define must be changed to “Require”

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

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?

A

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”

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

When debugging RESTlets, why is it important to remove the HTTP authorisation header?

A

Because this can cause issues preventing the debugger from working.
Debugging RESTlet

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

How would you get the cookies pertaining to your RESTlet during debugging?

A

After selecting the RESTlet script in the debugger, the RESTlet’s cookies will be displayed.
debugging restlet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
Q

What is the usage limit on all script types when debugging?

A

1000

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

Can you receive errors via email when debugging?

A

No, the email error notifications are disabled when debugging.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
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
18
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
19
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
20
Q

What is the N/log module used for?

A

It is used to log script execution details.

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

How many logs is an account allowed to make across all scripts?

A

100,000

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

How many days are logs permitted to exist before being purged?

A

30 days

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

If N/log is used on a client script deployed to a form, where will those logs be available for viewing?

A

They will appear on the relevant deployment record.

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

What is the purpose of the N/error module?

A

It is used to create custom SuiteScript errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
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
26
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
27
Q

What script types can the N/error module be used in?

A

Server side scripts only, excluding User Events.

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

The N/error module can be used in User Event Scripts, but what is the issue of it’s use?

A

The N/error module can create custom errors in User Event scripts, however the error object itself cannot be used. Making it redundant.

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

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

A

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

30
Q

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

A

It measures the performance of user event scripts, client scripts, and workflows, to identify customisations that take a long time to run.

31
Q

What is the APM tool: Page Time Details used for?

A

It gives information relating to a specific operation during a specific date & time.

32
Q

What is the APM tool: SuiteScript Analysis used for?

A

It gives data relating to the history and performance of scripts.

33
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.

34
Q

What is the APM tool: SOAP Web Services Analysis used for?

A

It is used to monitor the performance of top SOAP Web Services operations and record processing

35
Q

What is the APM tool: REST Web Services Analysis used for?

A

To monitor the performance of REST Webs Services operations

36
Q

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

A

To monitor the performance of multiple saved searches and identify potential issues

37
Q

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

A

It provides in-depth statistics about the performance of each saved search

38
Q

What is the APM tool: Concurrency Monitor used for?

A

To monitor peak levels, errors and other related concurrency data

39
Q

What is the APM tool: Profiler Details used for?

A

To monitor the timing breakdown and context of an operation to locate and correct performance bottlenecks

40
Q

What are 2 limitations of the APM tool: Profiler Details?

A
  • It cannot display information about client scripts
  • It can only log operations that have customisations
41
Q

What is a potential positive to using external libraries when developing a script?

A

They can be utilised to improve performance

42
Q

RESTlet transfer time when transferring big data can often exceed 5 seconds, how can we reduce this transfer time?

A

Through compression

43
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

44
Q

Does SuiteScript work well with native JS?

A

Yes

45
Q

What external JS library can we use to convert date/times from one zone to another?

A

The Moment Timezone library

46
Q

How do we utilise external JS libraries?

A

Define them as a custom module

47
Q

When using bundle installation scripts, what is one limitation when it comes to modules?

A

Custom modules are not supported

48
Q

What do we use custom modules for?

A

Building and accessing additional customised API fuctionality

49
Q

What three main pros are there to using custom modules?

A
  • 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
50
Q

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

A

The Define object

51
Q

When creating scripts with an entry point which of the Define or Require objects do we need?

A

We require the Define object to utilise entry points in a script

52
Q

When creating new modules which of the Define or Require objects do we need?

A

Define is required when creating new modules

53
Q

When exporting modules which of the Define or Require objects do we need?

A

Define is required to export modules

54
Q

When importing modules using a relative path which of the Define or Require objects do we need?

A

Define is required to import modules using a relative path

55
Q

When importing modules using an absolute path which of the Define or Require objects do we need?

A

Require

56
Q

In order to step through code in the SuiteScript debugger, which of the Define or Require objects do we need?

A

Require is necessary to step through code in the SuiteScript Debugger

57
Q

If we require progressive loading of dependencies, which of the Define or Require objects do we need?

A

We need to use the Require object to progressively load dependencies

58
Q

When building a test framework, which of the Define or Require objects do we need?

A

Require supports building a test framework

59
Q

Since a custom module will not have a script record, where would we find it?

A

They must be uploaded to the file cabinet

60
Q

True of False?
Map/Reduce scripts are only available in SS 2.0 and 2.1

A

True, they are not available in SS1.0

61
Q

When should we use a Map/Reduce script?

A

A Map/Reduce should be used when large amounts of data require processing

62
Q

What makes a Map/Reduce script optimal for large data sets?

A

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.

63
Q

What happens when a map/reduce exceeds a specified yield time, or governance?

A

The map/reduce will automatically pause and reschedule themselves to be run later.

64
Q

When should we use a scheduled script over a map/reduce?

A

When the order in which data is being processed is important as scheduled script runs sequentially.

65
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.

66
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

67
Q

What is a Suitelet script useful for?

A

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.

68
Q

Suitelets are only available once it is deployed, true or false?

A

True

69
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

70
Q

Where can a RESTlet be called?

A

Both within NetSuite and from an external application

71
Q

SuiteTalk SOAP & REST web services integrations can trigger Client & Server side scripts, as well as Workflows but only under one condition, what is it?

A

The execution context of the script or workflow must include “Web Services”