We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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
19
Views
8
Comments
edited May 19, 2017 5:36PM in UI Extensibility 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!