Is it possible for the IF buttons mark picked/pack...
# suitescript
c
Is it possible for the IF buttons mark picked/packed to trigger my before save UE?
a
Yes, when “Mark Picked” or “Mark Packed” updates the Item Fulfillment, it should trigger the beforeSubmit UE.
c
You'd think it would. My log statement doesn't seem to be triggering in my UE though. If I use the edit form to change the status it does though.
t
Can you create a custom button to trigger the UE and change the status via workflow?
c
I could. I was hoping to avoid that since the marked picked/packed buttons are blue which is a quick eye catch for the warehouse crew.
a
That’s interesting — it usually should, but NetSuite often processes those buttons using XEDIT or system updates. If your script is only handling EDIT, it won’t fire. We should include XEDIT in the UE context and test again. If it still doesn’t trigger, then NetSuite might be bypassing UE for that action, and we may need an alternative approach like workflows or afterSubmit.
i that's not a big deal. you can change color even custom buttons
n
Don't we have pack and pick events for UE? @Christopher Quackenbush
b
There is a specific user event type for marking an item fulfillment as packed or shipped. It is neither xedit nor edit. Make sure your deployment is not restricted to a certain event type and that your code doeesn't return early for the wrong event types
I would also recommend removing code related to execution contexts, the packed and shipped buttons will not be the values you expect. That said, your code for debugging this issue should simply be a log and nothing else, maybe multiple logs