Can anyone confirm if custom segments are still no...
# general
b
Can anyone confirm if custom segments are still not supported by the Custom GL Lines Plug-in?
👋 1
c
following...somehow I thought this changed
The Custom GL Lines Plug-in modifies the general ledger impact of standard and custom transactions. Use the Custom GL Lines Plug-in to comply with a wide range of global accounting standards by applying custom transaction logic that adds lines to the NetSuite GL Impact page. The Custom GL Lines Plug-in can set and read custom segment values from custom and standard lines, and from transaction records. The default values for column segments are sourced from the body. The Custom GL Lines Plug-in can change this value, even for segments that are applied only to the body.
b
Ooohhh, custom segment values! I wonder what the call is? (non developer here, apologies for the wrong use of terminologies)
Copy code
if(HAS_DEPARTMENTS) newLine.setDepartmentId(lineDept);
			    if(HAS_CLASSES) newLine.setClassId(lineClass);
			    if(HAS_LOCATIONS) newLine.setLocationId(lineLoc)
Copy code
if(HAS_DEPARTMENTS) lineDept = stdLine.getDepartmentId();
		if(HAS_CLASSES) lineClass = stdLine.getClassId();
		if(HAS_LOCATIONS) lineLoc = stdLine.getLocationId();
s
@Belle the latest documentation shows that you can use these api calls for custom segments, where segmentId is the script id of your custom segment:
segmentValueId = stdLine.getSegmentValueId(segmentId)
newLine.setSegmentValueId(segmentId, segmentValueId)
pages 40 and 49