Hi all, Is there a way to detect when an Item Ful...
# general
r
Hi all, Is there a way to detect when an Item Fulfillment changes from Packed to Shipped status? I need to perform this action, to take the tracking number of this Item Fulfillment when it is updated. I would appreciate any help in this regard, best regards.
a
@Ramón Velázquez Rojas it can definitely be done by querying the system notes, where field is ship status and value changes from Packed to Shipped, but there are also fields available in saved search called "picked date" and "ship date". Alternatively, i've done some scripts populate custom fields on the transactions so it's easy to look at the transaction in the UI and see when it was picked, packed, shipped.
r
Hi @User, my specific problem is that I need to perform this detection through suiteScript, automating this process to be performed every time a Fulfillment Item is assigned tracking numbers. I have tried to do it with a Trigger in a user event script but I have not had the desired result.
a
this can definitely be done as I have something similar in place for a client. How are you assigning tracking numbers exactly?
r
Hi @AK47, currently, I can detect the creation of the Items Fulfillment through the triggers, but when I get the data and consult them, they do not have the tracking number because it has not been assigned. This moment of assignment where it changes from Packed to Shipped status is the one that I need to trigger my trigger or detect in some other way.
a
Right, you should be setting your trigger on the status change from ship status of picked to shipped. You can set a workflow or a UE at that point.
r
GM @AK47, could you share with me some documentation link or code on how to set the trigger on the state change, is that I have not been able to set it correctly and I have been crashing with that problem for several days, I would really appreciate it.
a
it really depends on how you're setting these packages to shipped. Is it through the UI? This is an example of a basic workflow that will trigger when a fulfillment is saved in the shipped status

https://blog.prolecto.com/wp-content/uploads/2015/08/netsuite-workflow-overview-20150816.png

👍 1
r
The exchange helped me a lot, I understood several necessary topics thanks to you.
👍 1