Modules
Objects/Functions
SuiteScript 2.0
{Document}.createComment({data: {string}})
N/xml Module
Document.createComment()
Method Description:
Creates a Comment node of type COMMENT_NODE with the specified string.
Returns:
xml.Node
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/xml Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Document.createComment(options)
Example:
// Code Example 1
//Add additional code
//...
var newNode = xmlDocument.createComment({
data : 'This is a comment.'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_460454650877.html