この高度な例は、問題がクローズされるたびにライブフィードで自動メッセージを生成するテーブル通知を説明するものです。

また、この例ではアサインされたユーザーに関するメッセージを追加し、そのメッセージを問題レコードからではなく、アサイン先グループ プロフィールから投稿します。
  • テーブル:問題 [problem]
  • アクティブ:このチェック ボックスをオンにする。
  • 更新:このチェック ボックスをオンにする。
  • ライブフィードに投稿:このチェックボックスをオンにする。
  • 一致条件:[問題のステータス] [は] [クローズ/解決済み]
  • 説明問題が解決された。
  • メッセージ
    Problem ${number} - ${short_description} has been resolved. ${fixedByMsg}
  • スクリプトの前
    //cancel if we didn't just change the problem state if ( !changedFields. contains ( "problem_state" ) )
    answer  = false ;
     
     //if we have an assigned_to value add a comment about who it was //create a new variable fixedByMsg that we can access from the message
    fixedByMsg  = "" ; if ( !current. assigned_to. nil ( ) )
    fixedByMsg  = " Thank you " + current. assigned_to. getDisplayValue ( ) ;
     
     //make the message appear to come from the assignment group if we have one if ( !current. assignment_group. nil ( ) )
    profileSource  = current. assignment_group. getRefRecord ( ) ; //need GlideRecord object
    図 : 1. 問題解決を通知するメッセージの例
    問題解決を通知するメッセージの例