Any changes to this issue: ```Invalid API usage. Y...
# ask-stanley-ai
j
Any changes to this issue:
Copy code
Invalid API usage. You must use getSublistValue to return the value set with setSublistValue.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the error message
Invalid API usage. You must use getSublistValue to return the value set with setSublistValue
is a known issue in NetSuite. This error typically occurs when trying to retrieve a value that was set using
setSublistValue
without first using
getSublistValue
. One workaround mentioned in the threads is to use
getSublistValue
before using
setSublistValue
. This is because
getSublistValue
may not be available in create mode, and you might need to find another way to get the information you're trying to retrieve. In addition, it was mentioned that
setSublistValue
might not work if the record object is in dynamic mode. The solution to this issue is to set
isDynamic
to
False
when using
setSublistValue
. Furthermore, in a client script, you can use both 'current' mode APIs and standard. This can be done by using both types of functions in the script, for example,
getCurrentSublistValue
and
getSublistValue
. However, to set a sublist value, you might need to select a line, use
setCurrentSublistValue
, then
commitline
. This is because
setSublistValue
might not work, and using the aforementioned method might take a bit longer. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.874373376
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.861795545
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853583753
Please provide your feedback on this answer.