I have a User Event script on the Item Fulfilment ...
# suitescript
r
I have a User Event script on the Item Fulfilment record - set to run on all roles, all contexts, run as Administrator. These work as expected when a Fulfilment is created or edited in the UI Some of the function are reliant on the Status of the fulfilment. The script runs after submit, so if I edit a Fulfilment, set the Status to Packed (in the drop down) then save the Fulfilment, the script processes as expected (based on the Status being Packed). However, if the Fulfilment is Picked, and I use the 'Mark as Packed' button, then the script doesn't appear to trigger. In the System notes the status change appears under the context of UI - so I'm not sure why this isn't triggering?
n
There are other types specific to pick/packed/ship with itemFulfillments you should be able to leverage
in example: let isShipped = (context.type === context.UserEventType.SHIP);
r
Problem is userevent is not triggering itself. I have a log statement at very start of the script. And it's not coming up. I have undeployed all the other script and still the same issue. I am not sure if userevent triggers when clicking mark as packed and mark as shipped standard button on IF. Using aftersubmit entry point if that matters.
n
Does it not even show in beforeSubmit if you log it?
r
Nope, neither BS or AS is getting triggered. I think UE doesn't trigger when using standard mark as packed and mark as shipped button on IF.
n
That's unusual since the .PACK/.SHIP event should fire on IF's that's what it's specifically for,
r
Userevent was not selected in script deployment context filtering. Missed to see it at first. Thanks for the help.
👍🏻 1