Could anyone please help? What this error is? {"ty...
# suitescript
v
Could anyone please help? What this error is? {"type":"error.SuiteScriptError","name":"SSS_INVALID_API_USAGE","message":"Invalid API usage. You must use getValue to return the value set with setValue.
t
You are getting a text value in a before submit context without having set that value
v
i only have afterSubmit, not beforeSubmit.
var name = pfaRecord.getValue('altname'); var bankAccount = pfaRecord.getText('custrecord_2663_bank_account'); var amount = pfaRecord.getValue('custpage_2663_amount'); var transSummary = pfaRecord.getValue('custpage_2663_trans_summary'); var recordId = pfaRecord.getValue('id'); var domain = url.resolveDomain({hostType: url.HostType.APPLICATION}); //log.debug('domain',domain);
it is there, i dont get what is the issue
b
your record doesnt have the text set on it
you will have to do a search/query to get the text
alternatively you can load the record again, though that tends to be less performant
202 Views