This topic contains 2 replies, has 0 voices, and was last updated by kcng 9 years, 11 months ago.

  • Author
    Posts
  • #4659

    mmarchant77

    Hello,

    Our business sells items that are custom: each item is slightly different than the next. The specifications for the items are defined in a custom record. After, a NS item record is created and linked to this custom record through a custom field. We were hoping to automate the process of creating NS items on after submit of the custom record but have run into a problem with the scripting: Given these are dropship items we need to populate the vendor sublist in the vendor subtab. However this isn’t well documented and I’m not capable of setting the purchase price and purchase currency. Does someone have an idea how to do this?

    Thanks, Matt
    This is a cached copy. Click here to see the original post.

  • #4660

    mmarchant77

    I have found a simple solution. I have created a template Item that has most of the field I need populated. I then use nlapiCopyRecord instead of nlapiCreateRecord. In most cases the vendor information will be correct but if I need to modify it I have found that it’s possible with:

    itemRec.setLineItemValue(‘itemvendor’,’vendor’,1,vendorId);

    where 1 is for the line number and vendorId is the id for the preferred vendor for the item. Also, other column fields in this sublist can probably be updated using this command with the correct field id.

  • #4661

    kcng

    Hi Matt, I think you can try moving this to https://usergroup.netsuite.com/users…pt-custom-code instead.

    Since this is a SuiteScript thing, I think more people would be able to help you out over there.

You must be logged in to reply to this topic.