Modules

filter

 

Objects/Functions

module (N/record)

SuiteScript 2.0

record.detach(options)

{record}.detach({record: {type: {string*},id: {number | string*}},from: {type: {string*},id: ${7:number | string*}},attributes: ${8:Object}})

N/record Module
record.detach()
Method Description: Detaches a record from another record. For the promise version of this method, see record.detach.promise(options). Note that promises are only supported in client scripts.
Returns: void
Supported Script Types: Client and server-side scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/record Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=record.detach(options)

Example:

// Code Example 1
// Add additional code.
//...
record.detach({
record: {
type: 'file',
id:'200'
},
from: {
type: 'customer',
id:'90'
}
})
//...
// Add additional code.

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4267284360.html