You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to set Threads via Workspace add-in?

Accepted answer
20
Views
8
Comments
edited Jun 13, 2022 4:10AM in General Technical Discussions 8 comments

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 2016

Code 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;
				}
			}
		}
	}
} 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!