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.
HELP!! Find Customer by External ID?
Hello,
Can someone provide the correct syntax for getting a customer record which matches a specific external ID?
I'm trying the code below, trying to find all customer, partners and leads which match the passed strCustomerID. While the query doesn't fail it doesn't return any records. What exactly is the trick???
THANKS!
-----------------------------------------------------------
private bool SearchCustomersForID(string strCustomerID, bool bReLoginIfNeeded, out Record[] records)
{
Debug.Assert(m_bLoggedIn);
records = null;
//---------------------------------------------
RecordRef recordRef = new RecordRef();
recordRef.externalId = strCustomerID;
recordRef.type = RecordType.customer;
recordRef.typeSpecified = true;
RecordRef[] recordRefs = new RecordRef[1];
recordRefs[0] = recordRef;
SearchMultiSelectField extId = new SearchMultiSelectField();
extId.@operator = SearchMultiSelectFieldOperator.anyOf;
extId.operatorSpecified = true;