How to set Threads via Workspace add-in?
Content
Hi Fellaws,
I am working on a Workspace Ribbon Add-in and trying to set Incident threads via Add-In Framework. I am able to get threads, but how do we set them?
Here is the code for getting them but not sure how to set because it contains an interface. Do we need to create our own class for this? Please guide me.
Thanks and Regards,
Pramod V
Version
May 2016Code Snippet
private void RecordContext_DataLoaded(object sender, System.EventArgs e) { if (this.RecordContext != null) { IIncident inc_Info = (IIncident)RecordContext.GetWorkspaceRecord(WorkspaceRecordType.Incident); if (inc_Info != null) { IList<IThread> threads = inc_Info.Threads; if (threads.Count > 0) { foreach (IThread each_thread in threads) { int thread_ID = each_thread.EntryType; string thread_text = each_thread.Note; } } } } }
Tagged:
0