レコードの作成/更新時に働く通知の条件で特定フィールドを除外したい。

慶吾岡
Tera Expert

レコードの作成/更新時に働く通知の条件として「特定のフィールドを更新したときは通知を送信しない」を追加したいのですが方法が分かりません。いい方法はありますか?

1 件の受理された解決策

@慶吾岡,

 

Since type of field is string, you wont be able to use changes operator. 

You can use business rule with following logic as example.

if (current.string_field == previous.string_field){//Alternative condition (!current.string_field.changes())
 gs.eventQueue('custom.notification_event', current, current.sys_id, gs.getUserID());
}

 

Use this logic in your BR and fire an event and set notification trigger as event.

 

Regards,

Ehab Pilloor

元の投稿で解決策を見る

8件の返信8

@慶吾岡,

 

Since type of field is string, you wont be able to use changes operator. 

You can use business rule with following logic as example.

if (current.string_field == previous.string_field){//Alternative condition (!current.string_field.changes())
 gs.eventQueue('custom.notification_event', current, current.sys_id, gs.getUserID());
}

 

Use this logic in your BR and fire an event and set notification trigger as event.

 

Regards,

Ehab Pilloor

GlideFather
Tera Patron

Hi @慶吾岡,

can you provide more details?

You can trigger a particular notification by firing an event and for that you can add the event only when you want to be fired.

Do you want to discuss this further?

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Ankur Bawiskar
Tera Patron
Tera Patron

@慶吾岡 

why are you focusing on sending notification when some field doesn't change?

You should focus on determining the actual trigger condition.

Example: send email when work notes changes, now even if along with work notes some other field changes let the email be triggered

what's your actual business requirement?

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

Ankur Bawiskar
Tera Patron
Tera Patron

@慶吾岡 

you should focus on determining the exact condition when it should be sent and not focus on when not to send.

what's your actual business requirement?

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