Are NetSuite internal IDs of a given field case se...
# suitescript
r
Are NetSuite internal IDs of a given field case sensitive? So for example, when setting a value with uppercase letters when referring to the internal ID, it might not work. Did some testing in the browser using nlapiSetLineItemValue and it seems to be the case, but not fully sure if it applies to SuiteScript 2.X, etc.
z
AFAIK JavaScript (SuiteScript) is case sensitive
a
1. internal IDs are numbers, numbers don't have cases 2. field ids which i think is what you mean are case sensitive and generally are always lower case I just tried to create a custom field with fieldID with CAPS... and it doesn't let you, I didn't even get a chance to submit and generated an error, there's the equivalent of client script running that set it all to lower
💯 1
r
Yes, apologies, I meant number 2. - field IDs. I was wondering about field IDs as external IDs are case insensitive, so I wanted to check that it was not the case for field IDs :) NetSuite Applications Suite - External IDs Overview https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_N3433806.html#External-IDs-Overview "External IDs are case insensitive in web services references." Indeed I was aware NS does not allow you to create with caps, but I was wondering if a script would try to set a value referring to the same field ID with caps if that would work. I also did some testing in SuiteScript 2.X and as you both mentioned, indeed it does not work, as it is case sensitive. Thanks for all the help!
z
I think it is URL case insensitivity
when I use RESTLET GET method and there is a query parameter, it will be always "lowercase" when check / get value
POST payload (JSON string) comes as is sent