スクリプトインクルードを使用して、メールのプロジェクトインサイトのヘッダーとフッターを更新します

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:4分
  • スクリプトインクルードを使用して、プロジェクトサマリーのメールテンプレートを変更します。

    始める前に

    SPM 向け Now Assist がインストールされ、プロジェクトインサイト生成スキルがアクティブであることを確認します。

    必要なロール:admin

    手順

    1. 移動先 すべて > システム UI > スクリプトインクルード.
    2. ProjectInsightsEmailTemplateCustomConstants スクリプトインクルードを開き、メールのヘッダーの ProjectInsightsEmailTemplateCustomConstants.EMAIL_HEADER_HTML 定数を更新します。

      次の例では、メールのヘッダーのスクリプトインクルードを示します。

       ProjectInsightsEmailTemplateCustomConstants.EMAIL_HEADER_HTML = `<p><span style="color: white;"><a href="https://www.servicenow.com/" target="_blank" rel="noopener noreferrer nofollow"><span style="color: white; text-decoration: none;"><span style="color: blue;"><img style="height: 30px; width: 150px; border: none;" src="sn_spm_gen_ai.sn-logo-project-insights.png" alt="servicenow logo" height="30px" border="0" /></span></span></a></span></p>`;
    3. メールのフッターの ProjectInsightsEmailTemplateCustomConstants.EMAIL_FOOTER_HTML 定数を更新します。

      次の例では、メールのフッターのスクリプトインクルードを示します。

      ProjectInsightsEmailTemplateCustomConstants.EMAIL_FOOTER_HTML = `<p style="border-top: 1px solid #293e40; line-height: 0;"><span style="color: #999999;"> </span></p><div style="caret-color: #212121; color: #212121; font-family: Aptos; font-size: 16px; width: 100%; margin: 0 auto; padding: 0; background-color: #ffffff;">      <!-- Logo Section -->      <div style="line-height: 0.8;">        <span>          <a href="https://www.servicenow.com/" target="_blank" rel="noopener noreferrer nofollow" style="text-decoration: none;">            <img src="sn_spm_gen_ai.sn-logo-project-insights.png" alt="servicenow logo" style="height: 20px; width: auto; border: none;" />          </a>        </span>      </div>      <!-- Address and Footer Information -->      <div style="font-family: 'Century Gothic', CenturyGothic, Helvetica, sans-serif; font-size: 12px; line-height: 0.8; color: #293e40; margin-top: 5px;">        <p style="margin-bottom: 0; padding: 0; line-height: 0.8; font-size: 10px;">          <span>2225 Lawson Lane, Santa Clara, CA 95054, United States</span>        </p>        <p style="margin-bottom: 0; padding: 0; line-height: 0.8; font-size: 10px; color: #293e40;">          <span>© 2024 ServiceNow. All rights reserved</span>        </p>      </div>    </div>`;
      完了すると、プロジェクトサマリーのメールテンプレートでヘッダーとフッターがカスタマイズされます。