10.07.2015 Views

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setting <strong>Web</strong> <strong>Services</strong> PreferencesSetting Request Level Preferences32may be undesirable to have the field automatically populated with the conditional defaultvalue.Note: Endpoints prior to version 2.0.0 also include a Use Defaults perference. If enabled,this preference allowed the use of default values for records. If not enabled, defaultvalues were not set, forcing the <strong>Web</strong> services application to provide all requiredvalues. When upgrading to version 2.0.0 or later, you must adjust your codeaccordingly since this preference will not be available.Setting Request Level PreferencesIn addition to setting preferences to be used for all requests submitted to <strong>NetSuite</strong>, you can alsoset preferences at the request level.To set preferences at the request level, your code must do the following:• Clear the headers (Java only)• Create a new SOAPHeaderElement: the same command is used for all preferenceelements. You must use camelCase style capitalization for the preference type name.Although no errors are thrown if this is not used correctly, your settings will beignored.• Create the Preference object. This object contains the elements you are allowed to set.These elements include:• warningAsError• useConditionalDefaultsOnAdd• useConditionalDefaultsOnUpdate• disableMandatoryCustomFieldValidation• disableSystemNotesForCustomFields• ignoreReadOnlyFields (see Setting the ignoreReadOnlyFields Preference fordetails)<strong>SuiteTalk</strong> <strong>Platform</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!