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
Performing a Lookup from a Zip Code
When a new Customer record is saved in the system, we'd like to assign it to a Media Market based on the Customer's Zip Code. For example, Zip Code 10017 = Media Market New York.
We've adding this function to the Save Record function on the Customer form.
We created a Custom Record Type for the list of 3-digit Zip Codes for each Media Market.
We're having trouble referencing the Zip Code on the Customer record and having never done a lookup before. Here is our code. What are we doing wrong?
function getMetroMarket()
{
var zipcode;
var ziplookup;
/* get reference to Customer's Zip Code */
0