ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.

SuiteScriptでサイト・カテゴリの説明を変更

適用

製品:  NetSuite 2022.1



シナリオ

SuiteScriptでNetSuiteアカウントにて既存のサイト・カテゴリの詳細説明フィールドを更新します。クライント側やサーバー側のスクリプトの何れでも可能です。例コードは以下です。



解決策

以下はSuiteScript 2.0のSuiteletスクリプトです。デプロイした後に、説明フィールドを更新します。サイト・カテゴリはオブジェクトレコードの種類のため、スクリプティングは可能です。

/** 
 * @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 
  */ 
 function updateSiteCategory(context) { 
  try { 
   var siteCategory = record.load({ 
    type:
タグ付けされた:

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー