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!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Working with custom records
Hi,
I have a script that does a search for a custom record based on a value of a custom field after a customer record has been created.
It used this value to lookup a custom record to see if it already exists.
Here is the code:
function CheckIfTHisCardNumberExists()
{
var currentRecord;
currentRecord = nlapiGetNewRecord();
var enteredcardno = currentRecord.getFieldValue('custrecord_linked_card_no');
var searchresults = nlapiSearchRecord('customrecord17', null, null, null);
var totalsize = searchresults.length;
for (var i = 0; i < totalsize; i ++)
{
var searchresult = searchresults[i];
var curcardnum = searchresult.getValue('custrecord_mship_mem_2');
alert("curcardnum is " + custrecord_mship_mem_2);
if (curcardnum == enteredcardno)