ディスカッション
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
ワークフローで注文書のフィールド値の設定でリストに特定なフィールドを見当たらない
適用
製品: NetSuite 2024.2
シナリオ
ユーザーはワークフローを使用してフィールド値を設定しようとしましたが、ユーザーが探している特定のフィールドが見つかりません。
解決策
ワークフロー・セット・フィールド値のリストに特定のフィールドがない場合の代替手段として、ワークフローによってトリガーできるワークフロー・アクション・スクリプトを作成し、そこからかわりにフィールドに移入します。
本番環境に適用する前に、サンドボックスでこれを行うことを強くお薦めします。次のステップを参照してください。
手順1:ワークフローにて見当たらないフィールドのIDを書き取ります。
※ホーム>プリファレンスの設定 >デフォルトに属して > 内部IDを表示 のチェックバックスをマーク
※注文書に移動して、表示/編集モード > フィールド名を押下して > フィールドヘルプのバックスが表示されて > 下側であるフィールドIDにて選択したフィールドのIDが表示されます。
手順2:空白の.js file を作成します
手順3:メモフィールドを設定する以下のコードをファイルに追加します (注:これはサンプルコードのみなので、自分の仕様と合わせて変更する必要があります)
SuiteScript 1.0
function wf_populateField() {nlapiSetFieldValue('memo','値を自由に設定');}
SuiteScript 2.0
function onAction(scriptContext) {scriptContext.newRecord.setValue({fieldId: 'memo',value: '値を自由に設定'})}
※注:上記コードはレコードの編集モードの時のみに設定されます。
手順4:ファイルを保存します
手順5:カスタマイゼーション > スクリプト > スクリプト > 新規作成 へ移動して、「+」アイコンを押下する > 作成したファイルを選択する > ワークフローアクションを選択
手順6:以下のフィールドを記入
- 機能:wf_populateField
- 名前:WF Action Populate Field
手順7:保存して展開を押下
手順8:以下のフィールドを記入
- 次に適用:注文書を選択します
- デプロイ:チェックバックスをマーク
- ロール:すべてのロールをマーク
- ステータス:リリース済を選択
手順9:ワークフローに移動して、編集します
手順10:見当たらないフィールドを設定する状態を選択して > 新しいアクション > WF Action Populate Field (Custom) を選択して > トリガーの時期:入力(ワークフローの状態に依存)を選択して > 保存
手順11:ワークフローを保存
免責事項
ここに記載されているサンプルコードは、法律で認められている最大限の範囲で、いかなる種類の保証もなく、「現状のまま」で提供されています。Oracle+NetSuite社は、開発者がそれぞれの開発プラットフォームにサンプルコードを実装したり、独自の Web サーバー構成を使用したりする際に、個々の成功を保証するものではありません。
Oracle + NetSuite社は、サンプルコードに関連するデータまたは情報の使用、使用結果、正確性、適時性または完全性に関して、いかなる保証も行わず、表明もしません。Oracle + NetSuite社は、明示的にも黙示的にもすべての保証を放棄し、特に、商品性、特定目的への適合性、およびコード、またはそれに関連するサービスやソフトウェアに関連する保証を放棄します。
Oracle + NetSuite社は、本サンプルコードに関連してお客様または他者が行った行為に起因するいかなる種類の直接的、間接的または結果的な損害または費用についても責任を負いません。