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.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
nlapiGetRecordId returns '-1' in timebill afterSubmit event
when entering hours through the "Weekly Time Sheet" entry form I always get a '-1' as the "InternalId" from the call to nlapiGEtRecord. The code is from the example in the developers manual and is as follows:
function onCreateAfterSubmit(type) { var nInternalId = nlapiGetRecordId(); var strRecordType = nlapiGetRecordType(); // var objRecord = nlapiGetNewRecord(); // nInternalId = objRecord.getId(); nlapiLogExecution('DEBUG', 'Create After Submit Script1', 'type:' + type + ', RecordType: ' + strRecordType + ', Id:' + nInternalId); }And this is what is returned:
[INDENT]Title Create After Submit Script1
Type Debug
Date & Time 6/23/2009 8-21
Details type:create, RecordType: timebill, Id:-1 [/INDENT]
My question would be is it possible to obtain the internal ids to timbeill records created through the "Weekly Time Sheet" entry form noting, I assume, that more than one record could be created based on a single line item and if so, what api functions could be used to find that information out.
0