Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Task Search by Job entityID
Can someone explain how to search for all tasks associated with a job entityId?
I am using the following code and no tasks are being returned:
Record[] taskList = new Record[0];
TaskSearch search = new TaskSearch();
JobSearchBasic jobBasic = new JobSearchBasic();
SearchStringField numberSearch = new SearchStringField();
numberSearch.@operator = SearchStringFieldOperator.@is;
numberSearch.operatorSpecified = true;
numberSearch.searchValue = jobNumber;
jobBasic.entityId = numberSearch;
search.jobJoin = jobBasic;
SearchResult res = service.search(search);
Thanks in advance for the assistance!