LoginSignup
0
0

[ServiceNow] systemユーザーによるBusiness Ruleスクリプトの起動を防ぐ

Last updated at Posted at 2023-06-26

systemはUserテーブル(sys_user)で定義されない特別なユーザーです。

しかし、ServiceNowのOOTBプロセスは、しばしばこのユーザーによって、レコードが更新されます。

特別なユーザであるため、Business ruleにおいては、Role conditionsでは起動を防げません。

systemがレコードを更新するとき、Business ruleのスクリプトを無効にしたい場合は、systemがユーザーとして定義されていないことを逆に利用して、Conditionに以下の様な条件を記述します。

Condion
gs.getUserID() !== 'system'
0
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
0
0