---
sourceDocument: オーストラリア API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/api-reference

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# TemplatePrinter - スコープ指定

# TemplatePrinter - スコープ指定 {#ariaid-title1}

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

TemplatePrinter API は、メール スクリプトから電子メール メッセージへの印刷を処理するメソッドを提供します。

この API のコンストラクターはありません。これらのメソッドは、メールスクリプトで テンプレート グローバル変数を使用して呼び出されます。

## TemplatePrinter - print(文字列 文字列) {#ariaid-title2}

文字列をメール本文に出力します。
{#r_TPS-print_S__table_cnv_rdy_nt__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| string | 文字列 | 出力する文字列。 |
[表 : 1. パラメーター]

{#r_TPS-print_S__table_cnv_rdy_nt} {#r_TPS-print_S__table_dnv_rdy_nt__entry__2}

| タイプ | 説明 |
|-|-|
| なし |   |
[表 : 2. 返される内容]

{#r_TPS-print_S__table_dnv_rdy_nt}  

    template.print("Incident number - " + current.number + "\n");

## TemplatePrinter - スペース (数値スペース) {#ariaid-title3}

メール本文に改行なしのスペースを追加します。
{#r_TPS-space_N__table_pys_c2y_nt__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| スペース | 番号 | メール本文に出力する改行なしスペースの数。 |
[表 : 3. パラメーター]

{#r_TPS-space_N__table_pys_c2y_nt} {#r_TPS-space_N__table_qys_c2y_nt__entry__2}

| タイプ | 説明 |
|-|-|
| なし |   |
[表 : 4. 返される内容]

{#r_TPS-space_N__table_qys_c2y_nt}  

    template.space(4);


