変数セットが変化したときにスクリプトを走らせる方法

恵那白
Tera Contributor

こんにちは。

 

現在、カタログに変数セットを配置してカタログを作成しておりますが、

その変数セットで動きがあったとき(追加されたり・削除されたり・変更されたとき)にスクリプトを走らせたいです。

 

どのような方法で実装可能でしょうか。

 

1 件の受理された解決策

_odamai_
Tera Guru

@恵那白 
業務の目的を存じ上げないので的外れでしたら申し訳ございませんが、

変数セットのテーブルはitem_option_new_setテーブルになります(変数の場合item_option_newテーブル)ので、
こちらをトリガーにBusiness Ruleを実装すると良いのではないでしょうか。

 

添付画像のように、BRのTableでitem_option_new_setを設定できます。

_odamai__0-1758078525688.png

 

元の投稿で解決策を見る

3件の返信3

_odamai_
Tera Guru

@恵那白 
業務の目的を存じ上げないので的外れでしたら申し訳ございませんが、

変数セットのテーブルはitem_option_new_setテーブルになります(変数の場合item_option_newテーブル)ので、
こちらをトリガーにBusiness Ruleを実装すると良いのではないでしょうか。

 

添付画像のように、BRのTableでitem_option_new_setを設定できます。

_odamai__0-1758078525688.png

 

Ankur Bawiskar
Tera Patron

@恵那白 

you can write onChange catalog client script on variable within variable set and then handle your logic.

You can't detect any change on any variable within that variable set directly as there is no script which runs on variable set.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@恵那白 

As per new community feature you can mark multiple responses as correct.

If my response helped please mark it correct as well so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader