Friday, 20 May 2016

Unified Service Desk 2.0.1 - Customization File Issue

Unified Service Desk Customization File-


  • As we all know Microsoft has introduced Customization File feature in latest release (2.0.1) of Unified Service Desk by which Developers can extend the core functionality offered by Unified Service Desk by creating custom hosted controls and functionality as per their business requirement. However, until now, deploying custom components involved copying the files required for the custom functionality on each client computer either manually or through some other automated way, such as a custom MSI package installer.

  • Unified Service Desk now provides out-of-box support for easily deploying and updating custom components. Use the new Customization Files entity to upload your custom files to the CRM server as a compressed (.zip) file. The .zip file contains files required for the custom functionality along with a [Content_Types].xml file that provides MIME type information of the file type extensions that are included in the .zip file. The Customization Files record can then be attached to a Configuration record in Unified Service Desk so that when any user who is part of the configuration record uses Unified Service Desk client to connect to CRM, the .zip file attached to the Customization Files record is automatically downloaded and contents are unpacked on the client user’s computers to render the custom functionality in their client application. This eliminates the need for administrators to have to manually copy the custom files to the client computers.

  • When there is an update to the custom components, developers provide the latest .zip file with the updated custom component files to the administrator. The administrator replaces the .zip file in the Customization Files entity record on the CRM server, and updates the client caching number to push the update to all the clients. More information: TechNet: Push an update to clients


Issue in Unified Service Desk Customization File-

  • I have configured a External Hosted Application type Hosted Control to use a dll and exe for some kind of automation. It works by just copying the DLL and EXE into the USD installation directory. But if i use Configuration File feature of USD 2.0.1 (as given in link https://blogs.msdn.microsoft.com/usd/2015/11/19/customization-files-in-unified-service-desk/), it supposed to work too with copying the file at C:\Users\<Username>\AppData\Local\Microsoft\UnifiedServiceDesk\<MyOrgName> location. but its not working anymore. Also found below error in Error File: System.IO.FileNotFoundException: Could not load file or assembly 'mydll' or one of its dependencies. The system cannot find the file specified.

  • Its mentioned on MSDN forum that, it is not necessary to copy the Package Deployer Temp files to USD Client installation directory to make it work smoothly, but while i am launching USD client 2.0.1 its giving me so many error of Cannot load KPI control, Email generator, notes manager etc, which i guess due to not to copying of Package Deployer Temp files in USD Client installation directory. Please let me know is that mandatory to copy the Temp file in USD 2.0.1 Client installation directory to make it work properly.

I posted the same issue at Microsoft Forum and below is the response i got of the same:


Also 


Hope, Microsoft will fix this issue soon in their next release.



ADXStudio Lookup Filtering - Filter DropDownList in ADXStudio

As we all know that ADXStudio has one of the intresting Out Of Box feature to Convert CRM Lookup into DropDownList on ADXPortal Entity Form, but the major limitation of this feature is, it stop filtering data if you have applied Lookup Filtering on CRM Lookups in CRM.

So if I want to Filter my two lookup fields on ADXStudio Portal Entity Form, It doesn't work if we will convert them into DropDownList using Entity Form Metadata. i tried to figure out so many alternatives ,Also asked on ADXStudio Community Forum, And I found its the Limitation of converting Lookup into DropDownList in ADXStudio. Hope will get the solution in next ADX release

So only solution that i came into my mind is to use DropDownList Filtering using JQuery in Entity Form to achieve the same.

Here what i was doing...

I had two Lookups on my CRM Case Entity Form (State and City) and I converted them into DropDownList using Entity Form Metadata.  And below is the code through which i filtered my City DropDownList based on State DropDownList:

We can write this JQuery in "Custom JavaScript" section of AdxStudio Entity Form in CRM.

<script type="text/javascript">
    $(function ()
    {
        
        var $state = $('#state');
        var $city = $('#city');

        var $cityList = $city.find('option').clone();

        var stateandcity =
        {
            MP: ["Gwalior", "Indore", "Bhopal", "Other"],
            UP: ["Noida", "Agra", "Lukhnow", "Other"],
            Mahrashtra: ["Nagpur", "Pune", "Mumbai", "Other"]
        }

        $state.change(function ()
        {
            var $selectedState = $(this).find('option:selected').text();
            $city.html($cityList.filter(function () {
                return $.inArray($(this).text(), stateandcity[$selectedState]) >= 0;
            }));
        });
    });
</script>

Here is the Output of the above Code:



Blogger Widgets