Custom Lists as XML Definitions

A custom list is a list of values that you can use in custom fields on your forms and records. Custom lists enable you to set up predefined choices for your employees and customers to select when entering transactions and records. You can create an unlimited number of custom lists and an unlimited number of values for each list.

Create and manage custom lists using SuiteCloud Development Framework (SDF). You can model a custom list in a SuiteCloud project and deploy the project to a target NetSuite account. You can either create new custom lists in your project or import existing lists from a NetSuite account. For more information about working with custom lists in a NetSuite account, see Creating a Custom List.

A custom list object is comprised of the following:

Your custom list appears on custom fields when deployed to an account. The following is an XML definition example of a custom list. When deployed to an account, go to your custom field to select List/Record under Type, and select your custom list under List/Record. Under the Validation & Defaulting subtab, the Default Selection displays the values from your custom list that you can select:

          <customlist scriptid="customlist_accounttype">
      <description>Account type is used to distinguish between primary and secondary accounts.</description>
      <isinactive>F</isinactive>
      <ismatrixoption>F</ismatrixoption>
      <isordered>T</isordered>
      <name>Account Type</name>
      <customvalues>
         <customvalue scriptid="val_53391_399334_433">
            <abbreviation>P</abbreviation>
            <isinactive>F</isinactive>
            <value>Primary</value>
         </customvalue>
         <customvalue scriptid="val_53392_399334_459">
            <abbreviation>S</abbreviation>
            <isinactive>F</isinactive>
            <value>Secondary</value>
         </customvalue>
      </customvalues>
</customlist> 

        

You can create custom values in a custom list. In a custom list object, custom values are grouped within the customvalues structure. In this structure, you can create as many custom values needed by specifying a customvalue structure for each one. For more information, see customvalue.

Your custom list can be used in custom fields on your forms and records. You can create custom fields in both SDF and NetSuite. For more information, see Creating a Custom Field.

For more information about custom lists, see the following topics:

Related Topics

General Notices