We have a script written in SS1.0 that among a few...
# suitescript
t
We have a script written in SS1.0 that among a few things, will create an Item Fulfillment record. However, I.F. records created with this method never trigger a workflow we have that should run for all Item Fulfillments on create. Is this is known thing with Netsuite? What might be the work-arounds? Off the top of my head, I would imagine a scheduled workflow, but wondering what other options we may have available? Thanks!
b
what type of script?
t
UE
b
known thing
user event scripts can't trigger other user event scripts or workflows
Copy code
User event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script. In other words, you cannot chain user event scripts. You can, however, execute a user event script from a call within a scheduled script, a portlet script, or a Suitelet.
t
Wonder what the reasoning behind that is.
b
im assuming they didn't want to deal with infinite loops
t
Thanks for the help. I really appreciate it.
c
You can get around it though by having a suitelet that the UE calls that does the work and that'll fire the UE
👍 1
b
Is this actually done? It sounds slow since the record is saved twice. And it sounds insecure since the suitelet is external
c
suitelet isn't external as you are on server-side so you're already authenticated
b
are you sure
serverside isn't authenticated
suitelets use the presence of the jsessionid to check authentication and backend scripts don't set that cookie
c
I am wrong you are correct.. i was thinking client side.
either way you can call the suitelet if you HAVE to fire the UE