Users may sometimes encounter the error message An unexpected error has occurred. when saving a Commerce Category page. This is commonly caused by the URL Fragment which contains invalid characters. URL Fragments like the ones below, The URL Fragments are invalid as it uses invalid characters and spacing. When saving a Commerce Category with these invalid… Continue reading Resolve the ‘Unexpected Error’ message when saving a Commerce Category record
Tag: record
Record copy option in Suitescript
var objRecord = record.copy({ type: record.Type.SALES_ORDER, id: 157, isDynamic: true, defaultValues: { entity: 107 } }); Governance Transaction records: 10 units Custom records: 2 units All other records: 5 units Supported Script Types Client and server scripts SSS_MISSING_REQD_ARGUMENT A required argument is missing or undefined.
How to set any record fields through console using Suitescript
We can set any record fields using the internal id of the record, the internal id of the field, and the record.submitFields() from the ‘N/record’ module. Please refer to the following: require([‘N/record’], function(record) { record.submitFields({ type: <REC_TYPE>, … Continue reading How to set any record fields through console using Suitescript