Skip to main content

SuiteCloud Updates in NetSuite 2021.2

2021.2 SuiteCloud |

SuiteCloud Development Framework (SDF) is a development framework and deployment mechanism. Customers and partners can use SDF to create customization projects for internal use within their

Change

organizations or for commercial distribution. For more information about SDF, see the help topic SuiteCloud Development Framework Overview. For a complete list of custom records and customizations that are supported by SDF, see the help topic Customizations Supported by SuiteCloud Development Framework.

Installation Preferences Configuration Updates

SDF SuiteApp installation preferences have been updated with the following enhancements:

  • You can now configure installation preferences for custom record types and custom lists in addition to script deployments.
  • When an SDF SuiteApp is installed (or an SDF project is deployed), you can choose to preserve some or all of the existing data in the target account for script deployments, custom record types, and custom lists. Preserving data can be useful when you do not want to overwrite values your SuiteApp users have modified in the target account, such as script deployments, custom record instances, or custom list values. You can configure SDF SuiteApp installation preferences by editing the code block in the overwriting.xml file, which is located in the InstallationPreferences folder of your SDF project. The following information describes the fields you can set for SDF SuiteApp installation preferences:
  • For script deployments, you can set the following preferences:
    • For the scriptdeployments field, you can set the defaultAction attribute to OVERWRITE or PRESERVE. This setting is the default applied to all script deployments that are not explicitly set by the scriptdeployment field’s action attribute.
    • For the scriptdeployment field, you can set the action attribute to OVERWRITE or PRESERVE. This setting applies to a specific script deployment. The following code sample configures an SDF SuiteApp’s installation preferences to overwrite all script deployments in the target account by default, with the exception to preserve the script deployment customscript_user_event_example.customdeploy_ue_example:

<scriptdeployment scriptid=“customscript_user_event_example.customdeploy_ue_example action=“PRESERVE""/>

  • For custom record types, you can set the following preferences:
    • For the instances field, you can set the defaultAction attribute to OVERWRITE or PRESERVE. This setting is the default applied to all custom record instances that are not explicitly set by the instance field’s action attribute.
    • For the instance field, you can set the action attribute to OVERWRITE or PRESERVE. This setting applies to an individual custom record type instance. The following code sample configures an SDF SuiteApp’s installation preferences to preserve all of the instances for custom record type customrecord_type_example in the target account by default, except for the instance customrecord_instance_example which will be overwritten: Change
- For custom lists, you can set the following preferences: - For the customvalues field, you can set the defaultAction attribute to OVERWRITE or PRESERVE. This setting is the default applied to all custom list values that are not explicitly set by the customvalue field’s action attribute. - For the customvalue field, you can set the action attribute to OVERWRITE or PRESERVE. This setting applies to an individual list value. The following code sample configures an SDF SuiteApp’s installation preferences to overwrite all of customlist_example custom list’s values in the target account by default, except for the customlist_value_example value which will be preserved: For more information about configuring installation preferences in the overwriting.xml file, see the help topic Overwrite Settings for SDF SuiteApp Projects. ## Enhanced Feature Dependencies Updates ## Enhanced feature dependencies now support OneWorld components. Your users can now install an ## SDF SuiteApp that contains a subset of OneWorld components to accounts that do not have OneWorld functionality. Your users can install such SDF SuiteApps without encountering warnings of errors about missing features. This functionality is available for the following subset of SDF custom objects: - customrecordcustomfield - otherrecordfield Note that when you install an SDF SuiteApp containing the customrecordcustomfield object with a Subsidiary field, those record fields will only appear in OneWorld accounts. For more information, see the help topic Enhanced Feature Dependencies for SDF Custom Objects. Minor Updates to Custom Objects ## Note the following information about updates to SDF support for custom objects: ## Object Field Type Notes centercategory linkobject single-select list This field now accepts references to the custom type customlist. Change ## Object Field Type Notes crmcustomfield sourcefrom single-select list This field now accepts references to the custom type crmcustomfield. customrecordtype otherrecords single-select list This field now accepts references to the custom type customrecordcustomfield. customsegment otherrecords field group New segmentapplication field group. entitycustomfield sourcefrom single-select list This field now accepts references to the custom type crmcustomfield. financiallayout — — New custom object. For the list of fields, see the help topic financiallayout. itemcustomfield sourcefrom single-select list This field now accepts references to the custom type crmcustomfield. appliestoexpense boolean New field. itemnumbercustomfield sourcefrom single-select list This field now accepts references to the custom type crmcustomfield. itemoptioncustomfield sourcefrom single-select list This field now accepts references to the custom type itemnumbercustomfield. othercustomfield sourcefrom single-select list This field now accepts references to the custom type othercustomfield. reportdefinition — — New custom object. For the list of fields, see the help topic reportdefinition. role coreadminpermission boolean New field. accountingbooksoption single-select list New field. transactionbodycustomfield sourcefrom single-select list This field now accepts references to the custom type transactionbodycustomfield. transactioncolumncustomfie sourcefrom single-select list This field now accepts ld references to the custom type transactioncolumncustomfield. translationcollection For string: scriptid string This attribute value can now be up to 255 characters long. For more information about SDF custom object fields, see the help topic SuiteCloud Development Framework XML Reference.