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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to get ENDTIME of a task through search?
Hi All,
I coudn't find way to get the endtime of a task record . I'm getting error not valid internal id
var fil = new Array(); var column = new Array(); fil[0] = new nlobjSearchFilter('assigned', null,'anyof',eid[k]); column[0] = new nlobjSearchColumn('title',null,null); column[1] = new nlobjSearchColumn('duedate',null,null); column[2] = new nlobjSearchColumn('company',null,null); column[3] = new nlobjSearchColumn('priority',null,null); column[4] = new nlobjSearchColumn('status',null,null); column[5] = new nlobjSearchColumn('starttime',null,null); column[6] = new nlobjSearchColumn('internalid',null,null); column[7] = new nlobjSearchColumn('assigned',null,null); column[8] = new nlobjSearchColumn('startdate',null,null); column[9] = new nlobjSearchColumn('endtime',null,null); var searchResults = nlapiSearchRecord('task',null,fil,column); if(searchResults != null){ for(var z=0;z<18;z++){ taskArray[z]=0; taskId[z] = 0; }
Tagged:
0