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

慶吾岡
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

Ehab Pilloor
Mega Sage

Hi @慶吾岡,

 

You can add in the condition logic that the specific field does not change.

Note that this type of condition will apply on selected type of fields.

 

Regards,
Ehab Pilloor

 

Would you be able to share more specific steps?

@慶吾岡,

If you using Condition logic for When to send, you can add AND condition and Specific field does not change, this could be limited to choice based fields.

 

If you are using event to trigger the notification, you can add the condition in your script before firing the event.

 

Can you mention the type of this field?

Regards,

Ehab Pilloor

The type of the target field is String.