This topic contains 2 replies, has 0 voices, and was last updated by Vesku1980 7 years, 2 months ago.

  • Author
    Posts
  • #21418

    rgrig

    We've written a script and we want to deploy if using the development environment. We're trying to target Inventory Item type records

    However, I can't figure out the correct reference key to use for <recordtype> in my deployment xml.

    I've tried, <recordtype>INVENTORYITEM</recordtype> along with several variations, with no luck.

    Here is the XML of our deployment

    <scriptdeployment scriptid="customdeploy_tobus_initem2">

    <isdeployed>T</isdeployed>

    <loglevel>DEBUG</loglevel>

    <recordtype>inventoryitem</recordtype>

    <status>RELEASED</status>

    <allroles>F</allroles>

    <audslctrole>[customrole_temp_sync_member]</audslctrole>

    <audemployee>28038</audemployee>

    </scriptdeployment>

    The error that I get on deployment out of Eclipse is:

    An error occurred during custom object update.

    Details: Invalid recordtype reference key INVENTORYITEM.
    This is a cached copy. Click here to see the original post.

  • #21419

    erictgrubaugh

    I exported an Inventory Item Script to XML from the NetSuite UI, and it uses INVENTORYITEM; I don't see anything wrong with what you're doing.

  • #21420

    Vesku1980

    Hi,

    If you load wanted record in browser you can check the itemtype field there.

    In basic inventoryitem it is :

    itemtype:"InvtPart"

    So, i think you need to use <recordtype>InvtPart</recordtype>

    Vesku

You must be logged in to reply to this topic.