Discussions
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?