CCA CRM Integration Using Hosted Control, Event handler Issue

Aug 24, 2012 at 11:09 AM
Edited Aug 24, 2012 at 11:15 AM

Hi Matt,

In one of the existing CCA Implementation, Team had built a Hosted control for CRM automation, as they were not aware of Composite CCA earlier. Now we are migrating it to use HAT.

But currently in Production, Customer is facing a typical Error,

ON CRM Activities Page, the Event for Save Button Click is Registered (using Anchor Element OnClick event). This event triggers a action on Outbound CTI Adapter to dispose a call.

The Event is captured successfully if Agent Hovers the mouse on Save Button and wait until the Tool Tip Appears before clicking save. But Typically agents, upon completing form Filling, clicks the Save button instantly, and the even is not returned to the Hosted Control.

Implementation Details

  1. Browser Used (System.Windows.Forms.WebBrowser)
  2. WCFHosted Control
  3. Anchor Element Captured by Element Name, in a Document Completed event, and event listener is attached to ONCLICK EVENT

 Need your expert advice on following

  1. Is this a correct approach to register Button Click event in CRM?
  2. If yes, how can we handle the delay required by CCA adapter to catch event ?
  3. If No, Would Browser events like BeforeNavigate or any other command would help capturing the trigger from CRM Application?