In timeline control, it displays all email activity and notes. Whenever a case is assigned to someone we generate a notification which is also visible in the timeline. Now users wanted to control this visibility, like filter type, where they can filter such emails. I was thinking to provide a checkbox so that when a user checks that checkbox, it will hide all notification emails.
till now I have tried to get the control and then set the filter xml but it's not working, can someone guide me on whether this is possible or not.
var c = Xrm.Page.getControl("Timeline");
c.setFilterXml("<filter><condition attribute='owninguser' operator='neq' value='9d52b1ee-07d9-e711-80f4-3863bb368de0' /></filter>");
c.refresh();