SuiteScipt 2.x User Event Script INVALID_API_USAGE

When creating a new record and testing a script, you may encounter the following error: INVALID_API_USAGE – Invalid API usage. You must use getSublistValue to return the value set with setSublistValue. This error typically occurs when using getSublistText() in situations where NetSuite expects getSublistValue(). Solution: Switch to getSublistValue One effective fix is to replace getSublistText()… Continue reading SuiteScipt 2.x User Event Script INVALID_API_USAGE