I am working with a client inventing a new project accounting mechanism where we are going to tie a Sales Order ID to a Custom Segment. We need to dynamically create the Custom Segment. It doesn't appear that the SuiteScript API works for it. For example, if I try to use nlapiLoadRecord('cseg[mysgement]', 1), it fails.
Any thoughts on how to get to this record object?