To use the NetSuite Record Listener activity, you must run the user event script in NetSuite system to define the user event to listen to.
For more information on how to run script in NetSuite system, see
SuiteScript Developer & Reference Guide.
Procedure
Log on to the NetSuite website as an administrator.
Upload the
TibcoUserEvent.js file, which is located in the
TIBCO_HOME/bw/palettes/netsuite/version_number/suitescriptTIBCO_HOME/bwcloud/palettes/netsuite/version_number/suitescript directory, to the
TibcoNetSuiteEventSource folder in the NetSuite website.
Click
Documents > Files > Suitescripts from the menu bar.
Upload the
TibcoUserEvent.js file to the
TibcoNetSuiteEventSource folder.
Click
Customization > Scripting > Scripts > New from the NetSuite website menu.
Select
TibcoUserEvent.js from
SCRIPT FILE, and Click
Create Script Record.
Click
User Event.
Specify the following information:
Input an event name in
NAME field.
Select
TibcoUserEvent.js from
SCRIPT FILE.
Input a value in
AFTER SUBMIT FUNCTION field.
Click
Save and Deploy.
Select
Account from
APPLIES TO.
Select
Testing or
Released from
STATUS.
Note: If you select
Testing as the deployment status of a script, the script is executed only for the script owner.
Select
Create,
Edit, or
Delete from
EVENT TYPE.
Note: This plug-in only supports the
Create,
Edit, and
Delete event types. If you do not select any event types in the
EVENT TYPE field, the deployed script is executed on the
Create,
Edit, and
Delete events.
Click
Save.
You can view your script by clicking
Customization > Scripting > Scripts from the NetSuite website menu.