ディスカッション
AIを用いた自動化で請求書処理を合理化
AIを用いた考察を使用して、計画と予測を迅速化
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.
We’re excited to announce that the 2025 Community Recap is now available! This special recap highlights the amazing contributions and achievements of our members over the year and celebrates the collective success of our community.
Check your personalized recap to see the impact you made in 2025 and how your efforts helped shape our community’s growth and success.
View Your 2025 Community Recap
Thank you to everyone for your passion, collaboration, and support. Here’s to building an even stronger community together in the year ahead!
Season’s greetings to you and yours! As we head into the holidays (December 24 – January 4), we want to take a moment to celebrate the incredible strength and collaboration within our community. Even during the break, you can continue to benefit from connecting with peers, searching related threads, posting your questions, and marking helpful replies as “Accepted” in the Support Community.
Please note our dedicated team will be on reduced coverage during this time, and regular responsiveness will resume on January 5. Wishing you a joyful and restful holiday season!
-The NetSuite Support Community Team
SuiteScriptでタスクレコードへユーザーノートを添付する
適用
製品: NetSuite 2022.1
シナリオ
タスクに添付されるユーザーノートを作成する前に、活動フィールドは指定する必要があります。その活動フィールドは、内部IDを保存して、連係を成立します。
解決策
SuiteScript 1.0のサンプル:
カスタマイゼーション > スクリプト > スクリプト > 新規作成 へ移動します。
追加「+」のアイコンを押下して、以下のサンプルコードがついているスクリプトファイルをアップロードします。
スクリプトレコードを作成を押下します。
スクリプト種類でSuiteletを選択します。
名前:タスクにノートを添付 を記入します。
ID:スクリプトIDを記入します。
機能:attachNotetoTaskを記入します。
保存して展開を押下します。
タイトル:タスクにノートを添付を記入します。
ID:デプロイメントIDを記入します。
ステータス:リリース済を選択します。
ログレベル:デバグを選択します。
ロールとして実行:管理者を選択します。
保存を押下します。
/**
* Module Description
*
* Version Date Author Remarks
* 1.00 DD/MM/YYYY author SA
*
*/
/**
* @param {nlobjRequest} request Request object
* @param {nlobjResponse} response Response object
* @returns {Void} Any output is written via response object
*/
function clearFieldOnRecord(request, response) {
try {
var noterecord = nlapiCreateRecord('note');
noterecord.setFieldValue('title', 'Invoices Started');
noterecord.setFieldValue('note', 'Invoices Being Processed');
noterecord.setFieldValue('activity', 23); //タスクの内部ID (活動はケース等の内部IDとしても設定できます)
var noterecordId = nlapiSubmitRecord(noterecord);
} catch (error) {
nlapiLogExecution('DEBUG', 'The package sublist is empty', '0');
}
}
SuiteScript 2.0のサンプル:
カスタマイゼーション > スクリプト > スクリプト > 新規作成 へ移動します。
追加「+」のアイコンを押下して、以下のサンプルコードがついているスクリプトファイルをアップロードします。
スクリプトレコードを作成を押下します。
名前:タスクにノートを添付 を記入します。
ID:スクリプトIDを記入します。
ステータス:リリース済を選択します。
ログレベル:デバグを選択します。
保存して展開を押下します。
タイトル:タスクにノートを添付を記入します。
ID:デプロイメントIDを記入します。
ステータス:リリース済を選択します。
ログレベル:デバグを選択します。
ロールとして実行:管理者を選択します。
保存を押下します。
/**
* @NApiVersion 2.0
* @NScriptType Suitelet
* @NModuleScope SameAccount
*/
define(['N/record'], /**
* @param {record} record
*/
function (record) {
/**
* Definition of the Suitelet script trigger point.
*
* @param {Object} context
* @param {ServerRequest} context.request - Encapsulation of the incoming request
* @param {ServerResponse} context.response - Encapsulation of the Suitelet response
* @Since 2015.2