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.
SuiteScript: Create a note on a supplier record
I am trying to create a note on a supplier record via Suitescript 2.0.
else{
//Create note that user has declined to send supplier evaluation form
var note = record.create({type: record.Type.NOTE});
note.setValue({fieldId: 'title', value:'Supplier Evaluation Form'});
note.setValue({fieldId: 'notetype', value: 7});
//note.setValue({fieldId: 'direction', value: 1});
note.setValue({fieldId: 'note', value: 'User has declined to send this supplier a Supplier Evaluation form.'});
note.setValue({fieldId: 'record', value: currentRecord.id})
note.save();
dialog.alert({
title: 'Send Supplier Evaluation Form',
message: 'A note has been created under Communications, User Notes, stating that you were offered to send this supplier a Supplier Evaluation form, but you declined to do so.'