SuiteScript 2.1 Flashcards
What is a portlet script useful for?
Portlet scripts are used to create custom portlets that can be displayed on the dashboard or any page that allows custom portlets.
RESTlet transfer time for big data transfer runs around 5 seconds or more. How can performance be improved?
Through compression.
What do we use custom modules for?
Building and accessing additional customised API fuctionality
How do we utilise external JS libraries?
Define them as a custom module
Where are execution log details displayed for SuiteScript 2.0 and 1.0 scripts when debugging?
They are displayed in the execution log tab.
What script module can be used to aid in debugging?
the N/log module.
What is the APM Tool: Page Time Summary used for?
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
What form of debugging can only be used for SuiteScript 2.0 and 1.0 scripts with no script deployment or record?
Ad-hoc, on demand debugging found at Customization > Scripting > Script Debugger
What script status is required for the SuiteScript 2.1 debugger tool to function?
The script must be in the testing status.
What is the APM tool: Concurrency Monitor used for?
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.
What is the APM Tool: Record Page Monitor used for?
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.
How would you display information related to custom errors created using the N/error module?
Using script logic, such as the N/log module.
Does SuiteScript work well with native JS?
Yes
Where are execution log details displayed for SuiteScript 2.1 scripts when debugging?
They are displayed in the console tab of the Chrome DevTools debugging window.
What is one negative aspect to compressing data when transferring through a RESTlet and how can we overcome it?
We can lose certain portions of data when compressing, however this can be solved by using an external JS Library such as Deflate
What is the APM tool: Search Performance Analysis used for?
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
What should you do with the RESTlet cookies once acquired?
They must be set in your client application and then the request must be sent.
debugging a RESTlet
What is the APM tool: SuiteCloud Processors Monitor used for?
It is used to monitor the performance of map/reduce and scheduled script jobs.
When scripting, what object / overloaded function is required to use custom modules?
The Define object
What does a RESTlet script do?
Export or import data to & from NetSuite and can be used to customise the behaviour of a page within NetSuite
Are errors created via the N/error module automatically logged?
No, the module is only used to create custom errors, not display them.
When should you use a RESTlet?
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.
What types of scripts is the SuiteScript 2.1 debugging tool able to debug? (3 total)
Scheduled Scripts
Suitelets
User Events
What is required to display a portlet created via a portlet script?
A custom portlet must be added and then configured to display the portlet script