Marty Zigman

Conversations with Marty Zigman

Certified Administrator • ERP • SuiteCloud

Marty Zigman LinkedIn

Marty Zigman

Holding all three official certifications, Marty is regarded as the top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc.. He is a former Deloitte & Touche CPA and has held CTO roles. For over 30 years, Marty has produced leadership in ERP, CRM, and eCommerce business systems. Contact Marty to set up a conversation.

BiographyYouTubeLinkedInX (Twitter)

4 thoughts on “NetSuite Drop Ship and Special Orders UserEvent Behaviors

  1. Kevin says:

    First, thanks for all of the great Netsuite info! I’ve been relying on your articles for years now.

    I have a need to build a User Event script that fires on creation of Special Order POs only, afterSubmit. The purpose is to write the new document number to the shipattention field on the new PO. This is to alleviate headaches in Receiving.

    Can you clarify if the context.type can simultaneously be both context.UserEventType.CREATE and context.UserEventType.SPECIALORDER? I’d think it would have to be one or the other, right? I’ve already built a very similar script that instead targets a specific Role and execution context. I’m a bit stuck on targeting all Special Order POs.

  2. Marty Zigman says:

    Hello Kevin,

    The answer to your question is Yes! But here is what you need to know:

    When NetSuite automatically creates the drop-ship or special order, the beforeLoad and beforeSubmit functions on the Purchase Order do *NOT* execute. But the afterSubmit function *DOES* execute. (Thanks to both Sean and Boban, Senior Technical Consultants on our team for helping to clarify this)

    You can write your code just like this in the afterSubmit event:

    if (context.type == context.UserEventType.CREATE || context.type == context.UserEventType.DROPSHIP || context.type == context.UserEventType.SPECIALORDER)

    Marty

  3. Cory Dowless says:

    Has your team tried firing UserEvent scripts with Special Work Orders as well? Even with afterSubmit, I’m not seeing any execution history & was hoping the Prolecto team may have run into this!

  4. Marty Zigman says:

    Hello Cory,

    We use the Special Orders all the time. You reference Work Orders. These should fire normal events. Are you getting any events?

    Marty

Leave a Reply

Your email address will not be published. Required fields are marked *