Handle events in Unified Service Desk with custom code RRS feed

  • Question

  • Hi,

    I'm new to customizing the USD and I can't get anything working atm. How do I start with coding with this thing? The walkthroughs really don't help me.

    The scenario is as follows, a ISV has supplied a hosted controll which raises events in the USD and I want to take action on these. I have given up on using the configuration parts and I need to develop something that does this  for me.

    So how do I start? I've tried using the CTI connector template but that gives an error saying "The designer must create an instance of type 'Microsoft.Uii.Desktop.Cti.Controls.CtiDesktopManager' but it cannot because the type is declared as abstract. " That's it, nothing more. Is this normal?

    How do I just get something up and running and callable from the USD?

    Very confused atm...


    Rickard Norström Developer CRM-Konsulterna
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Tuesday, May 17, 2016 10:07 AM

All replies

  • Hello Rickard,

    Unfortunately, there are not enough details here to identify a specific problem.  In case it helps, here is some general advice.

    In the USD development paradigm, Hosted Controls have Actions, which serve as inputs, and Events, which serve as outputs.  The application framework uses Actions to send commands to Hosted Controls, and those applications can fire Events to "bubble up" information to the framework, often triggering further Actions.  Instead of using Events, CTI implementations frequently use CtiLookupRequests in their code, which further involve Window Navigation Rules in their configuration.

    Raising Events from code in USD is fairly simple, however there are two components.  In the code, there must be a FireEvent command.  In the Configuration, the Hosted Control must have an identically-named Event, and of course the Event must be related to any necessary Configuration record.

    If you're using the CTI template for Visual Studio, make sure your configuration is using all three CTI components:  a connector, a control, and a desktop manager.  All are created by the VS project template.

    If the ISV has supplied a CTI Hosted Control and additionally provided the source, it may be helpful to troubleshoot the CtiLookupRequest and surrounding code.  Unfortunately, it's more likely that the issue in the configuration rather than the code, if not both.  Regardless, the USD Debugger will prove itself to be indispensable here.

    Are you able to clarify your issue?

    Tuesday, May 24, 2016 2:23 PM