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

Get the uncommitted thread from Messages tab

Accepted answer
21
Views
1
Comments
edited Jun 29, 2020 10:57AM in UI Extensibility 1 comment

Summary

How to get the uncommitted thread from Agent desktop by add-in?

Content

Hi,

I am using a workspace add-in to get the uncommitted thread when an agent writes a manual response to the contact from messages tab (Rich text incident thread). The following code is giving me all the responses from the incident thread but I want only the text entered by agent (which has not been saved yet).How can I restrict the addin to pick up only that unsaved response? Any suggestions would are appreciated

~NJ.

Version

20B

Code Snippet

IList<IThread> _threads = _incident_record.Threads;
foreach (IThread _thread_val in _threads)
{
 if (_thread_val.EntryType == 2 && _thread_val.Seq == 1)
  {
    if (_thread_val.Note != null)
     {
	_recent_resp_thread = _thread_val.Note;
	//MessageBox.Show("Recently entered thread:"+_recent_resp_thread);
     }
  }

}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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