---
sourceDocument: Xanadu Now Platform の管理
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu Now Platform の管理

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# メールの JavaScript

# メールの JavaScript {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

でのメールスクリプトの作成 システム通知メール通知メールスクリプトをクリックし、スクリプトフィールドで `${mail_script:script name}` を使用して参照します。

メッセージの本文にテキストを表示するには、template.print("文字列") 関数を使用します。  
図 : 1. テンプレートの JavaScript

元のイベントからの event.parm1 と event.parm2 パラメーターも使用できます。

メール スクリプトの作成の詳細については、開発者サイトの「[メール通知スクリプト](https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/servicenow_administrator/app_store_learnv2_automatingapps_washingtondc_notification_email_scripts)」を参照してください。
**関連資料**   

* [メール スクリプト API](https://servicenow-prod.fluidtopics.net/1fyhVjrPoeV5d_kGDLXozQ "mail_script スクリプトを処理する際は、特定の変数を使用できます。")
* [メール通知のスクリプトの例](https://servicenow-prod.fluidtopics.net/aMgbiaGRmyHwnuXWLa7X~g "メール通知のスクリプトの例")
* [便利な添付ファイル スクリプト](https://servicenow-prod.fluidtopics.net/LAtFLfqqNDhgOdZz59LmMQ "これは、便利な添付ファイル スクリプトの検索可能なバージョンです。")

