Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Add SalesOrder INSUFFICIENT_PERMISSION C#
Hi There,
I have sample code to add salesorder, . but I get error INSUFFICIENT_PERMISSION with message
You do not have permissions to set a value for element entity due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.
Code
SalesOrder newSO = new SalesOrder();
SalesOrderItemList salesOrderItemList = new SalesOrderItemList();
RecordRef rfCust = new RecordRef();
rfCust.internalId = "1107";
rfCust.type = RecordType.customer;
rfCust.typeSpecified = true;
newSO.entity = rfCust;
newSO.tranDate = Convert.ToDateTime(DateTime.Now);
newSO.orderStatus = SalesOrderOrderStatus._pendingApproval;
int gridCount = MainGrid.VisibleRowCount;