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.
Adding note to customer
Hi,
I am trying to adding note to customer but getting permission problem :
[Error]: [Code=INSUFFICIENT_PERMISSION] Permission Violation: You need the 'Lists -> Notes Tab' permission to access this page. Please contact your account administrator.
Here is the code which I written for adding note to customer record.
public void addNote() throws RemoteException, ExceededRecordCountFault, ExceededUsageLimitFault, InsufficientPermissionFault, InvalidSessionFault { // This operation requires a valid session this.login(true); Note note = new Note(); note.setTitle("Title from web form"); note.setDirection(NoteDirection._incoming); RecordRef noteType = new RecordRef(); noteType.setType(RecordType.noteType); note.setNoteType(noteType); note.setNote("Test comment here"); RecordRef customer = new RecordRef(); customer.setInternalId("26772"); customer.setType(RecordType.customer); note.setEntity(customer); WriteResponse response = null; try { // Invoke add() operation response = _port.add(note); // Process the response if (response.getStatus().isIsSuccess()) { _console.info("nThe following note was added successfully:" + "n key=" + ((RecordRef) response.getBaseRef()).getInternalId()); } else { _console.error("The note was not added:", true); _console.error(getStatusDetails(response.getStatus())); } } catch (Exception ex) { if (response == null) _console.info("No 0