Get Custom Incident Attribute from Chat Workspace Add-In
Content
I have created a Custom System Attribute for an Incident and placed the field on a Chat Workspace. The value of this field is being passed in from the Customer Portal. It will be used when creating an Incident after the Chat ends.
I have created a Workspace Add-In for the Chat Workspace. When the Workspace loads, I need to grab the value which is stored in that field on the Workspace; however, since it is an Incident Custom Attribute, it is not available when I use _recordContext.GetWorkspaceRecord(), as this returns an IChat object. Since, when the Workspace loads, the Chat is still either starting or in progress, there is not an associated Incident at that point in time; therefore, I can not just query for the Incident and pull it that way.