Ignore a specific sku when creating Fulfillment in NetSuite

Comments

5 comments

  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Have you considered transforming the sales order into a fulfillment rather than specify the items on a new fulfillment? This only makes sense if you know the orders will be shipped complete. When you transform you'll have an Item Fulfillment that only contains the items from the order. There is a NetSuite preference to default items to fulfilled which will also need to be set, otherwise you'll need to handle that in IIO.

    For our Ship Bob integrations we end up with some scripting to reliably handle the shipment data from ShipBob, the main reason is how they consolidate order lines by SKU.

    0
  • Aishwarya M J Referral Partner
    Engaged
    Celigo University Level 4: Legendary

    Hi Steve Klett,

    We have the scenario of partial Shipments hence completely transforming the Sales order into Fulfillment will not suite for us. I'm specifying the "created from" sales order and then replacing all the item lines

    Please see the mapping below. I believe my issue will be resolved if we are able to neglect/skip the particular Thank You card SKU when mapping.

    Can you suggest how this can be handled?

    0
  • Steve Klett Strategic Partner
    Celigo University Level 4: Legendary
    Answer Pro
    Great Answer
    Top Contributor
    Awesome Follow-up
    Engaged

    Aishwarya M J I don't know of a way to do accomplish that without scripting. We probably script 90% of our fulfillment flows for various reasons.

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Aishwarya M J like Steve Klett said, this would require a pretty simple script. Here is an example of how you could do this with a preMap script.

    function preMap (options) {
      return options.data.map((d) => {
        
        d.products_new = d.products.filter(function (p) {
          return p.sku != "Thank you card";
          }
        );
        
        return {
          data: d
        }
      })
    }

    0
  • Aishwarya M J Referral Partner
    Engaged
    Celigo University Level 4: Legendary

    Hi Tyler Lamparter,

    Thank you so much for the sample script. I will try out this to see if it works as expected.

    0

Please sign in to leave a comment.