Skip to main content
Answer

Capture when SOOrder Status is changed to shipping

  • November 8, 2024
  • 4 replies
  • 98 views

Forum|alt.badge.img

Hi,

I’m trying to capture whenever SOOrder status is changed to shipping so that I can do some of my own customization code when this event happens. Originally I had it when createshipment action was triggered. However, I realized it would send even if there was missing items in inventory and it would send even if the shipment wasn’t created. What graph would I look for capturing this event happening. My current code in SOOrderEntry isn’t capturing this change.
 

 

Best answer by aiwan

Sorry @jmc37, I didnt read your question properly!

 

You could do this each time a shipment is created, so you dont have to worry about the value being wrong if the shipment created was wrong, if a new shipment is created, this would then overwrite the value.

 

You could use a RowUpdated handler which would capture every change to the record if the FieldUpdated handler isn’t working out.

 

Also, you shouldnt need to get the value, sOOrder.Status == SOOrderStatus.Shipping should be enough

4 replies

Laura03
Captain II
Forum|alt.badge.img+19
  • Captain II
  • November 8, 2024

Hello,

I think the same question was recently asked, though you are asking to “capture” the date changed and the prior posts ask to have the date included in a report, and “retrieved”.

 

Please let us know whether these posts help to answer your question.

Laura


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • November 9, 2024

Hi Laura02,

That event handler doesn’t trigger when the status changes to “shipping” after “create shipment” process completes.


Forum|alt.badge.img+8
  • Captain II
  • November 12, 2024

Hi @jmc37 

 

You could override the ‘Create Shipment’ action and create a custom field ‘Shipment Created’, you would then set the value of the field to equal the date/time of when it was created.

 

Aleks


Forum|alt.badge.img+8
  • Captain II
  • Answer
  • November 12, 2024

Sorry @jmc37, I didnt read your question properly!

 

You could do this each time a shipment is created, so you dont have to worry about the value being wrong if the shipment created was wrong, if a new shipment is created, this would then overwrite the value.

 

You could use a RowUpdated handler which would capture every change to the record if the FieldUpdated handler isn’t working out.

 

Also, you shouldnt need to get the value, sOOrder.Status == SOOrderStatus.Shipping should be enough