NetSuite allows users to enable/disable some preferences which can control the execution of certain services. These preferences can be enabled/disabled in the NetSuite Connector using an optional Business Process parameter called PreferencesHeaders.
The value for the PreferencesHeaders parameter must be a JSON indicating the preferences to be used (in quotes) and if they are to be enabled (true/false). The different preferences supported are:
- disableMandatoryCustomFieldValidation
- disableSystemNotesForCustomFields
- ignoreReadOnlyFields
- runServerSuiteScriptAndTriggerWorkflows
- warningAsError
Note: If some preferences are omitted in the PreferencesHeaders parameter (as shown below), the omitted preferences will be disabled by default (set to false). If the PreferencesHeaders parameter is not used at all, all preferences will be disabled by default.
Example
The following example demonstrates the use of the PreferencesHeaders parameter, whose value is set using the Set Value Business Process task. Here, only ignoreReadOnlyFields preference is set to true (enabled) and all other preferences are set to false (disabled).
Notes:
- To enable/disable preferences for a NetSuite operation, the PreferencesHeaders parameter must be set before using the NetSuite operation.
- The preferences once set will be used by all subsequent NetSuite tasks in the Business Process.
To use different preferences for another NetSuite operation in the same Business Process, the PreferencesHeaders parameter must be set again.
Comments
0 comments
Please sign in to leave a comment.