My Photo

Microsoft Dynamics 365

Official Blog for Microsoft Dynamics Functional and Technical Solutions....

Error: NuGet Package Manager 2.8.50126.400 or later is required

 For Visual studio 2013, when I try to create a new project either for Kendo UI ASP .NET MVC 5 Application or for Telerik ASP .Net MVC Application, I get this error message "NuGet Package Manager 2.8.50126.400 or later required".


NuGet Package Manager 2.8.50126.400 or later is required


Download and Install the latest NuGet Package manager for visual studio 2013 from here 

Dynamics CRM V9 / D365 Connection through Console without Prompt

There are 2 major steps involved in the process.
  • Register the application with your Azure subscription
  • Build the Console Application
Register the application with your Azure subscription

Build the Console Application 

You need to change only the below authentication method in step 3 rest remains same

Pass user credentials with service URL and client id in Authentication Context

string authority = "";
AuthenticationContext authContext = new AuthenticationContext(authority, false);
var credentials = new UserCredential("", "pas@wrd1");
//without prompt
AuthenticationResult authResult = authContext.AcquireToken(serviceUrl, clientId, credentials);
authHeader = new AuthenticationHeaderValue("Bearer", authResult.AccessToken);
You can have a look at my code here :Sample Code

Happy Coding and CRMing 😊


Host free website on free server and domain (Host website on windows server for free No credit card required)

If you wanna test you website on public domain without purchasing an website hosting , you can register on below website : Click Here  (On Azure we get 30 days trail and it require credit card )

once registered Login and find you FTP details , you can also map you custom domain to the hosting.

You will get an free domain to view your website. Hope this was helpful. thanks


Dynamics 365 V9 : New feature lookupObjects (Xrm.Utility.lookupObjects)

Opens a lookup control to select one or more items.
Microsoft dynamics 365 V9.0 has enhanced many existing features in CRM online and has also introduced new features. Xrm.Utility namespace has also been enhanced with new feature like
and LookupObjects.

Lets take an example creating new field in account "new_lookupfilter"  when write js on change of this field (if we enter 'admin' it will open an lookup dialog of contact entity and we can modify it i.e multi-select E.T.C )

Now  selected record can be set to any other field.


function lookUpobjectTest() {
    // Set properties here
    var lookupOptions = {
        defaultEntityType: "contact",
        defaultViewId: "{608861bc-50a4-4c5f-a02c-21fe1943e2cf}", // GUID of the View
        viewIds: ["{00000000-0000-0000-0000-000000000000}",
                        "{00000000-0000-0000-0000-000000000000}"], // GUID of the View
        entityTypes: ["contact", "incident"],
        allowMultiSelect: true

Hope this was Helpful. Thanks


Show Progress Indicator (Out of the box) Microsoft Dynamics 365 CRM V9

Yesterday used a nice feature progress indicator, before we use to write custom JS to show loading progress image but now we can use new JavaScript function of the Xrm.Utility namespace : showProgressIndicator.

  • showProgressIndicator
  • closeProgressIndicator

show progress indicator (loading image)


function setFaxNumber() {
    Xrm.Utility.showProgressIndicator("Loading contact Info..");
    setTimeout(setFaxNumberafterdelay, 3000);
function setFaxNumberAfterDelay() {
    var phoneNumber = Xrm.Page.getAttribute("telephone1").getValue();
    if (phoneNumber != null) {



Update and delete entities using the Web API Dynamics 365 V9

Follow link to "Retrieve multiple entity record using Web API " above step is required to understand the how to connect with Dynamics 365 using Web API.

for update we can use SendAsync


JObject content= new JObject();
                    content.Add("statuscode", "100000000");
                    content.Add("statecode", "0");


 HttpRequestMessage updateRequest2 = new HttpRequestMessage(new HttpMethod("PATCH"),  "[Organization URL]api/data/v9.0/new_test(00000000-0000-0000-0000-000000000001)?$select=new_testid,statuscode,statecode,sab_name"  );
                        updateRequest2.Content = new StringContent(Content.ToString(),Encoding.UTF8, "application/json");
                        HttpResponseMessage updateResponse1 = httpClient.SendAsync(updateRequest2).Result;
                        if (updateResponse1.IsSuccessStatusCode)
                            //Get the response content  and parse it.
                           JObject body = new JObject();
                            body.Add("success", "true");
                            return body;
                            throw new Exception("error");



Hope this helped. thanks