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.
C#, Custom Record Type, INSUFFICIENT_PERMISSION
Hi all,
I'm writing some code in C# to update some custom records in our Netsuite db however, I am getting an INSUFFICIENT_PERMISSION error though I am logged in as a user with Administrator role.
The code looks like :
CustomRecordRef myCRR = new CustomRecordRef();
myCRR.internalId = "1"; // The key we got back
myCRR.typeId = "62";
ReadResponse rr = _service.get(myCRR);
CustomRecord cr = (CustomRecord)rr.record;
ArrayList cfs = new ArrayList(cr.customFieldList);
for (int i = 0; i < cfs.Count; i++)
if (cfs[i].GetType().Name == "StringCustomFieldRef")
{
StringCustomFieldRef thisDate = (StringCustomFieldRef)cfs[i];
if (thisDate.internalId == "custrecord_pan_auth_code")
thisDate.value = "987654321";
}
CustomFieldRef[] myList = new CustomFieldRef[cfs.Count];