Hi all, Does Restlet trigger user event script? I...
# suitescript
k
Hi all, Does Restlet trigger user event script? Is there a way for me to trigger user event script after restlet creates a sales order, or is there a way for me to run a script when a record is created?
e
The user event script code would need to be on the sales order.
k
When I make a sales order using my restlet, it doesn’t seem to trigger my user event script?
On documentation https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_1512409310.html It says trigger on web services, and Restlet unless I am missing something?
e
Is your UE script applied to a sales order record?
in other words when you create the UE script you have to deploy it and specify which record it applies to
as long as the UE script is deployed for a sales order and you don't have execution limits on context on either the beforeSubmit or afterSubmit or both, it should execute
k
I applied to to all record
e
RESTlet
must also be selected in the Script Deployment's
Execution Context
on the
Context Filtering
tab