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.
nlapiDeleteRecord not working with Item Fulfillment
I must be missing something simple....this code isn't working in my client script to delete a fulfillment...
var IF = nlapiSubmitRecord(itemFulfillment, true);
nlapiDeleteRecord('itemfulfillment',IF);
The fulfillment submits fine but the delete doesn't do anything, nor does it work if I force in an existing ID instead if the IF variable. Any ideas? I have tried in test mode and released mode and am using admin role for everything. Supported records show that Item Fulfillments are 'Copy and Create Not Allowed', so I'm pretty sure that the delete is allowed. When deleting manually via the UI, it does ask an 'Are you sure you want to delete this transaction?' message.
0