1. Which Suitescript API has maximum
governor limits?
· nlapiSetRecoveryPoint
· nlapiSubmitCSVImport
· nlobjJobManager.submit
2. What is the governor limits
allowed for Restlets?
5,000
3. Which Script has maximum governor
limits
Scheduled Script => 10,000
4. How can you overcome governance
issue in case of long running process or scheduled jobs on a large set of data
?
nlapiYieldScript()
5. What is the difference between
record level script and form level script ?
A client script can be deployed in one of two
ways: at the record level, or at the form level.
6. When
you deploy a client script at the record level, you deploy it globally on one
or more record types. The script runs on all forms associated with the record
type. By contrast, with a form-level deployment, you attach the script to a
custom form associated with a record type, and the script runs only when that
form is used.
For
example, you could use record-level deployment to configure a client script to
run on the employee record type. With this approach, the script run whenever
the employee record is used, regardless of which form is being used. With
record-level deployment, it is also possible to limit the script by configuring
it to be available only to certain audiences. With this approach, the script
runs only when the form is used by people in certain roles, groups, or other
classifications, as configured on the Audience subtab of the script deployment
record. However, with record deployment, you cannot limit the script to only
one form. The script behaves the same way on all forms associated with the
record type.
By
contrast, you could attach the client script to only one custom entry form for
the employee record type. If a user then opened an employee record using the
standard entry form, the script would not run. You can attach a client script
to any custom entry form, custom transaction form, or custom address form.
However, you cannot limit the audience for a form-level script.
Note
that only client scripts can be deployed at the form level. All other entry
point scripts can be deployed at the record level only.
7. What are the event types in a
client script ?
pageInit
saveRecord
validateField
fieldChanged
postSourcing
lineInit
validateLine
recalc
validateInsert
validateDelete
8. What's the Difference Between xedit and edit
User Event Types?
When the user event type argument is set
to xedit, it means that the
execution context for the script is inline edit or mass update. In other words,
if a user has inline edited a field on a record (or if the record has been part
of a mass update), the user event script will execute. In contrast, user event
scripts set to execute when the type argument is set to edit will execute when the record is edited in all other contexts. The script
will not execute based on an inline edit or mass update.
9. How Many User Events Can I Have on One Record?
There is no limit to the number
of user event scripts you can execute on a particular record type. For example,
you could have 10 beforeLoad, 9 beforeSubmit, and 15 afterSubmit executing
functions on a Customer record. However, assigning this many executable functions
to one record type is highly discouraged, as this could negatively affect user experience with
that record type. In other words, if you have 10 beforeLoad scripts that must
complete their execution before a record loads into the browser for the user,
this may significantly increase the time it takes for the record to load. As a
consequence, the user's experience working with the record will be negatively
affected.
10. What are the event types in a User
event script ?
Before Load
Before Submit
After Submit