While checking NetSuite Release Note 2024.2, I saw NS now allows SuiteScript 2.x for Custom GL impact script which allows to fetch and set segment data using getSegmentValueId(segmentId) and setSegmentValueId(segmentId).
But when I am trying to use it in my script, it throws unexpected error.
Anyone who has successfully implemented using above method to get/set segment Id??