Issue Product Version

If you track multiple versions of the same product, you can create versions and builds using the product version record.

For help working with this record in the UI, see Setting Up Product Versions.

The internal ID for this record is productversion.

See the SuiteScript Records Browser for all internal IDs associated with this record.

Supported Script Types

The issue record is scriptable in both server and client SuiteScript.

Supported Functions

The record can be created, read, updated and deleted using SuiteScript. It cannot be copied, transformed or searched.

Code Sample

The following script example illustrates how to create an issue product version record for a previously created issue product.

          var version = record.create({
    type: record.Type.ISSUE_PRODUCT_VERSION
});
version.setFieldValue({
    fieldId: 'issueproduct',
    value: productId
});
version.setFieldValue({
    fieldId: 'productversion',
    value: 'New version'
});
...
var versionId = version.save(); 

        

The following script example illustrates how to add IssueProductBuild to IssueProductVersion.

          var version = record.load({
    type: record.Type.ISSUE_PRODUCT_VERSION,
    id: versionId     // defined elsewhere
});
version.selectNewLine({
    sublistId: 'availablebuild'
});
version.setCurrentSublistValue({
    sublistId:'availablebuild',
    fieldId: 'build',
    value:'new build'
});
version.setCurrentSublistValue({
    sublistId: 'availablebuild',
    fieldId: 'description',
    value: 'Build description'
});
...
version.commitLine({
    sublistId: 'availablebuild'
});
var recordId = version.save(); 

        

Related Topics

Setting Up Product Versions
Working with the SuiteScript Records Browser
SuiteScript Supported Records
Support
Issue
Issue Product

General Notices