Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Return ID not Text nlapiGetCurrentLineItemValue
Hi all!
On a Cash Sale:
I want to return the InternalID for:
myAct = nlapiGetCurrentLineItemValue('item','custcolactivity');
myDept = nlapiGetCurrentLineItemValue('item','custcoldepartment1');
myAct is returning "International Projects" instead of 2
myDept is returning "Child Development" instead of 13
For some reason it returns the text, but I need the ID to be returned so that I can set the nlapiSetCurrentLineItemValue.
Example
nlapiSetCurrentLineItemValue('item', 'department','13');
nlapiSetCurrentLineItemValue('item', 'class', '2');
what am I doing wrong?
0