1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ServiceNow - 更新前の項目値をメールに記載する

Last updated at Posted at 2023-01-19

1.特定の項目が変更された場合にイベントを発生させる

イベント起動時に、パラメータ1に更新前項目値を設定します。
image.png
イベントの作成方法はこちらの記事を参考にしてください。

2.Notificationを作成する

起動方法を「Event is fired」に、イベント名を発生させたイベントに設定します。
image.png

3.Email Scriptを作成する

[System Notification] > [Email] > [Notification Email Scripts]
「event」変数にイベント起動時の引数情報を持っています。
「template.print()」で設定した値がメールに記載されるため、以下のようにScript記載します。
image.png

4.メール本文でEmail Scriptを呼び出す

${mail_script:[Script Name]}で変数と同様にEmail Scriptを使用できます。
image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?