{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":47898,"path":"servicenow-platform/live-feed/c_Example2ProblemResolvedAdvanced.md","title":"Problem resolved \\(advanced\\)","bundle":null,"doc_type":null,"release":"australia","body":"\n# Problem resolved \\(advanced\\)\n\nThis advanced example demonstrates a table notification that generates an automatic message on Live Feed whenever a problem is closed.\n\nIt also adds a message about the assigned user and posts the message from the assignment group profile instead of the problem record.\n\n-   **Table**: Problem \\[problem\\]\n-   **Active**: Select the check box.\n-   **Update**: Select the check box.\n-   **Post to Live Feed**: Select the check box.\n-   **Conditions**: \\[Problem State\\] \\[is\\] \\[Closed/Resolved\\]\n-   **Description**: `Problem Resolved`\n-   **Message**:\n\n    ```\n    Problem ${number} - ${short_description} has been resolved. ${fixedByMsg}\n    ```\n\n-   **Before script**:\n\n    ```\n    //cancel if we didn't just change the problem state if ( !changedFields. contains ( \"problem_state\" ) )\n    answer  = false ;\n     \n     //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\n    fixedByMsg  = \"\" ; if ( !current. assigned_to. nil ( ) )\n    fixedByMsg  = \" Thank you \" + current. assigned_to. getDisplayValue ( ) ;\n     \n     //make the message appear to come from the assignment group if we have one if ( !current. assignment_group. nil ( ) )\n    profileSource  = current. assignment_group. getRefRecord ( ) ; //need GlideRecord object\n    ```\n\n\n**Parent Topic:**[Live Feed table notification examples](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/live-feed/c_LFTableNotifiExamples.md)\n\n**Related topics**  \n\n\n[Live Feed table notifications](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/live-feed/c_SetUpLiveFeedTableNotifications.md)\n\n"}}