Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Redirect To Weekly Time Tracking Form
How can I redirect to the Weekly Time Tracking form instead of the default Time Track form? The following code snippet works fine and takes me to the Time Tracking form……
recordCreated = nlapiCreateRecord('timebill');
recordCreated.setFieldValue('employee', name2);
recordCreated.setFieldValue('location', '5');
recordCreated.setFieldValue('hours', '0');
recordCreated.setFieldValue('item', '77');
recordCreated.setFieldValue('payrollitem', '2');
recordCreated.setFieldValue('customer', instructorid);
recordCreated.setFieldValue('trandate', trandate1);
tranum = nlapiSubmitRecord(recordCreated, true);
nlapiSetRedirectURL('RECORD', 'timebill', tranum, true);
….but I want to go to the Weekly Time Tracking form instead.
Any way to do that?
Thanks;
Frank