Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Invalid Country Reference Key
We pull some data from a custom record type to create a new partner record. The following is the code used to create the partner record. The country is canada and is selected in the custom record from the native NS Country List by a getFieldValue. It returns 37 for Canada. However when the script executes we get Invalid Coundtry Reference Key 37 for the var emscountry2 when the new partner record is submitted. Based on the code below what change do I need to make this work.
var newpartrec = nlapiCreateRecord('partner');
//Put in the partner/entity ID, which is a required field
0