Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Can't create estimate via script for foreign subsidiary....
Hi-
I have a user event script that creates estimates. However, it seems that it will only create estimates for US based customers. When I attempt to run this script (below) for a foreign customer (in a different nexus) I get an UNEXPECTED_ERROR. I ran:
try
{
var id = nlapiSubmitRecord(newest, true, true);
}
catch ( e )
{
nlapiSubmitField('customrecord_suptcon', agmtid, 'custrecord_configurationwithpricing', (e.getDetails()+e.getCode()), false)
}
At the end of my code and it returned (through the text field that it submit to) "nullUnexpectedError".... Useful, I know...
I have also noticed that if I create a login for a foreign subsidiary, and then run this script it works fine. Additionally, if I am logged in as administrator (of the US parent company) and manually go to the estimate form in the UI and select a foreign customer I get the following message