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.
Trying to find contacts associated with a particular job
Hello,
I am attempting to return all the jobs associated with a particular contact. I am attempting to search through the customers, here is the code (C# .NET 2.0):
SearchMultiSelectField searchMult = new SearchMultiSelectField();
List<RecordRef> lstRef = new List<RecordRef>();
RecordRef rr = new RecordRef();
rr.internalId = "7558";
rr.type = RecordType.contact;
rr.typeSpecified = true;
lstRef.Add(rr);
searchMult.searchValue = lstRef.ToArray();
searchMult.@operator = SearchMultiSelectFieldOperator.anyOf;
searchMult.operatorSpecified = true;
ContactSearchBasic contactSearch = new ContactSearchBasic();
contactSearch.internalId = searchMult;
CustomerSearch custSearch = new CustomerSearch();
custSearch.contactJoin = contactSearch;
SearchResult sr = nsSvc.search(custSearch);
7558 is an internal ID of a contact that I have verified is associated with a job. Unfortunately the result doesn't find any matching records. What am I doing wrong?