Modules
Objects/Functions
SuiteScript 2.0
{Document}.getElementById({elementId: {string}})
N/xml Module
Document.getElementById()
Method Description:
Returns the element that has an ID attribute with the specified value as an xml.Element object. Returns null if no such element exists.
Returns:
xml.Element
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.getElementById(options)
Example:
// Code Example 1
//Add additional code
//...
var elem = xmlDocument.getElementById({
elementId : 'id12345'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_458778015135.html