Cannot Set Channel ID to a thread using addin
I'm trying to add thread to an incident. I've specified the Channel using ChanID attribute. But the channel ID is set to Email by default. Here is the code:
IThread thread = AddInViewsDataFactory.Create<IThread>();
thread.EntryType = 2;
thread.ChanID = 5;
thread.Note = textBox1.Text;
Anyone faced this issue before??