ディスカッション

スイート全体に組み込まれたAI機能は、データをより迅速に分析し、より優れた意思決定を促進する独自の考察を生成できるようにすることで、生産性を向上させ、リーダーに利便性をもたらします。オラクルのAI機能がどのように役立つかについては、これらのオンデマンド・ウェビナーをご覧ください。

AIを用いた自動化で請求書処理を合理化

AIを用いた考察を使用して、計画と予測を迅速化
NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more
No Limits. Just possibilities.
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.
Celebrate Your 2025 Community Recap & Achievements!

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!
Staying Connected During the Holidays

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

スクリプトを使用して、ユーザーの希望するタイムゾーンに基づいてカスタムフィールドの日付と時刻の値を設定する

編集済:Jun 2, 2025 2:48PM SuiteCloud / カスタマイズ

適用

製品:  NetSuite 2022.2



シナリオ

レコードを作成する際に、カスタムフィールドに自分のタイムゾーンの現在の日付と時刻を入力する必要があります。

 



解決策

  1. ユーザーイベントスクリプトを作成する
  2. カスタマイゼーション> スクリプト> スクリプト> 新規作成に移動します
  3. +アイコン:新規作成をクリックします
    注:新しいポップアップ画面が開きます
  4. ファイルの選択:参照をクリックします
    1. ユーザーイベントスクリプトファイル:ユーザーイベントスクリプトファイルをクリックします
    2. 開くをクリックします
    3. 保存をクリックします
  5. スクリプトファイルをアップロード:スクリプトレコードを作成をクリックします
  6. 種類:ユーザーイベントを選択
    注:これは、SuiteScript1.0を使用している場合にのみ適用されます
  7. 名前:名前を入力します
    例:カスタムユーザーイベントスクリプト
  8. ロード前機能:beforeSubmitを入力します
    注:これは、SuiteScript1.0を使用している場合にのみ適用されます
  9. 保存ボタン:マウスにカーソルを合わせます
    • 保存して展開を選択します
  10. スクリプトデプロイメント:
    • 次に適用:注文書を入力
    • デプロイ:ON
    • ステータス:リリース済みを選択します
    • ログレベル:デバッグを選択します
    • ロールとして実行:管理者を選択
    • 閲覧者/閲覧許可:
      • ロール:
        • すべてを選択チェックボックス:ON
  11. 保存をクリックします

サンプルスクリプト
SuiteScript 1.0 - ユーザーイベントスクリプト
を使用します。

function beforeSubmit(type) {
    nlapiLogExecution('DEBUG', 'Before Submit', 'type = ' + type);
    var d = new Date();
    var yyyy = d.getFullYear().toString();
    var mm = (d.getMonth() + 1).toString();
    var dd = d.getDate().toString();
    var time = formatAMPM(d);
    var val = (mm[1] ? mm : mm[0]) + '/' + (dd[1] ? dd : dd[0]) + '/' + yyyy + " " + time;
    var conf = nlapiLoadConfiguration('userpreferences');
    var tz = conf.getFieldValue('TIMEZONE');

    // The current date and time captured within the server is set to PST that is why we need to set it first to "America/Los_Angeles"
    // "custbody_orig_date" is the internal id of the custom field with field type of "Date/Time"

ようこそ!

サインイン

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

登録

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

リーダーボード

コミュニティの達人

第4四半期 (Oct-Dec 2025年)

今週のリーダー

今月のリーダー

歴代リーダー