Desktop add-in sees only most recently opened record if multiple workspaces are open
I have a desktop workspace add-in that copies certain incident fields into the textbox of a user control. It works as expected if only one workspace is open. If multiple workspaces are open (chat or incident) at the same time, the record context seen by the add-in for all open workspaces is only the most recently opened workspace.
For example, assume I have 3 chat workspaces that opened one after the other. When chat #1 has focus and I trigger the add-in to access incident fields via the record context, it accesses the record context of chat #3 instead of the workspace that has focus (chat #1 in this case).