This topic contains 3 replies, has 0 voices, and was last updated by markluu 8 years, 1 month ago.

  • Author
    Posts
  • #9680

    JBounds-OR

    Is it possible to automatically add a particular line item to a sales order after CSV import? We’d only need this for a specific customer (rather than all CSV imports). I took a look a workflows but hit a dead-end.
    This is a cached copy. Click here to see the original post.

  • #9681

    markluu

    Hi JBounds-OR,

    I think the best and easiest way would be to simply add it to the original CSV File. Workflows cannot access line items as far as I am aware so its normal you hit a dead-end. Another way would be to write a script to do that, but adding a line in the original CSV would be ideal.

  • #9682

    JBounds-OR

    Are there any sample scripts to look at then? It’s not such a big deal when it’s a handful of orders, but we’re getting towards holiday season and order volume for this particular customer is going to get unwieldy.

  • #9683

    markluu

    There are a few samples of scripts you can find in the help, but I don’t think you will find one that could be specific to your case.

    For example, I believe in your case you would need a user event script that will execute only for the specific customer and only when it is a CSV import. Right before saving the sales order, you would add the line you were referring to.

    Hope this helps,

You must be logged in to reply to this topic.