Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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