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.
Error creating Contact in Suitelet
Hello all,
Here's something strange.
I can create a contact client side with the following code but when the code is run in a suitelet it throws a bizarre error:
" Items you have requested in the record have been deleted since you retrieved the form"
var contact = nlapiCreateRecord('contact'); contact.setFieldValue('company', targetCompany); contact.setFieldValue('email', email); contact.setFieldValue('firstname', firstName); contact.setFieldValue('lastname', lastName); contact.setFieldValue('entityid', firstName +' '+ lastName); contact.setFieldValue('globalsubscriptionstatus', doSubscribe ? 1 : 2); var contactId = nlapiSubmitRecord(contact, {disabletriggers:true}); Anyone have any insight? workarounds? fixes? anything?
I've tried starting off using nlapiCopyRecord on a known good contact and tried creating in dynamic mode.
0