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

Cannot Set Channel ID to a thread using addin

Received Response
36
Views
1
Comments
edited Oct 24, 2017 1:17PM in UI Extensibility 1 comment

Content

 Hi, 

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;
                                increc.Threads.Add(thread);
                                recordContext.RefreshWorkspace();
                                recordContext.ExecuteEditorCommand(RightNow.AddIns.Common.EditorCommand.Save);

Anyone faced this issue before??

Thanks,

Vijay Krishna

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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