UserEvent Script Error `"SSS_INVALID_API_USAGE", "...
# suitescript
n
UserEvent Script Error
"SSS_INVALID_API_USAGE", "Invalid API usage. You must use getValue to return the value set with setValue. "
Docs: netsuite.com/app/help/helpcenter.nl?fid=section_4273156769.html I'm calling
record.getText({ fieldId: 'field' });
in a UserEvent Script in the
beforeSubmit
function. How can I know the Text value of a field in the context of
beforeSubmit
and
UserEventType.CREATE
?
b
I dont think you can use getText
The record in beforeSubmit only has ids set
You can do a search on the source of the field to get the name
n
Got it. I'll call
.getValue
then look up from there.