Monday, 13 November 2017

Problem seeing Azure Function in Visual Studio 2015



When you are not able to see Azure Functions Type in Cloud Template in Visual Studio 2015


  1. Uninstall your current Azure SDK version.
  2. Install 2.9.6 Azure SDK version for VS 2015 from below link:

     Download





Please comment for more info.....



Monday, 16 October 2017

One use of Interface – Polymorphism C#

We can implement the interface for those classes where behavior are same but definitions are different.
For example:

We are having 3 classes – Human, Fish and Car, all can move but way/ definition of moving is not identical.

Benefit
  • We are clearly able to group by the fact that they share common behavior
  • You need only single list to hold movable object, not 10 list of each type of object
  • We want to group these object by behavior they have in common. So do this, we use the interface

using System;
using System.Collections.Generic;
 
namespace ConsoleApplication4
{
    interface IMovable
    {
        void Move();
    }
 
    class Human : IMovable
    {
        public void Move() // Add code that defined what it called Human to move
        {
            Console.WriteLine("I am a Human, I move by Walking");
        }
    }
 
    class Fish : IMovable
    {
        public void Move()  // Add code that defined what it called Fish to move
        {
            Console.WriteLine("I am a Fish, I move by swimming");
        }
    }
 
    class Car : IMovable
    {
        public void Move() // Add code that defined what it called Car to move
        {
            Console.WriteLine("I am Car, I move By wheel");
        }
    }
 
    class Program
    {
        static void Main(string[] args)
        {
            //User of Interface : Make a group of object by the fact they all move
            //Grouping by the behaviour not by the  class hierarchy
           
            /*
             We are clearly able to group by the fact that they share common behaviour
             Benefit here:
                 You need only single list to hold movable object, not 10 list of  each type of object
            */
            List<IMovable> lstMovable = new List<IMovable>
            {
                new Human(),   // Polymorphism in action [Different Form]: We are adding the Human object to the list designed of movable object 
                new Fish(),    // Polymorphism in action [Different Form]: We are adding the Fish object to the list designed of movable object
                new Car()      // Polymorphism in action [Different Form]: We are adding the Car object to the list designed of movable object
            };
 
            foreach(IMovable movableType in lstMovable)
            {
                 movableType.Move();
                // When movable type is Human, the method from the Human class is invoked
                // When movable type is Fish, the method from the Fish class is invoked
                // When movable type is Car, the method from the Car class is invoked
            }
 
            Console.ReadLine();
        }
    } 
Note: Why we can’t use Abstract Class here
  • Class like Fish, Human or Car – all of these objects can move but all are having different way to move or different definitions

Comment if you require more info....


Thursday, 28 September 2017

How to uninstall Microsoft Dynamics Developer Toolkit From Visual Studio


  • Open Visual Studio
  • Go to Tools - > Extensions and Updates
  • Search for Developer Toolkit ex Microsoft Dynamics 365 Developer Toolkit.
  • Select the searched toolkit and click on uninstall.
  • Restart Visual Studio

Thursday, 29 June 2017

Integrate Power BI with Dynamics 365 online

Integrate Power BI with Dynamics 365 online



Pre-requites: You must have Dynamics 365 online instance with you.

Step 1) Configure Dynamics 365 Online instance

Note: Once it is installed, you will see that there is no icon displayed of Power BI in “Navigate to Other Application Icon” in  your CRM environment.





Step 2) Provision Power BI in your Dynamics CRM instance
  •      Login to Office 365 portal
  •      Go to the Admin Center
  •      Go to Billing > Purchase Services
  •      Select Power BI (free) or Pro.

      



  • Click on “Check Out now

 

   




  • Select “Invoice” from the Payment method drop down, if you don’t want to fill your card detail, though it is not harmful.

  





Once these above steps are completed, we will see the Power BI License in each active user’s Product License option.       


S         Step 3) Give Power BI licence to active users

                 
  • Go to Admin Panel
  • Select your active user whom you want to give right to use Power BI
  • Click on Edit License
  • Switch Power BI(Free) to right and click on Save.     






  We can see the Power BI now, integrated with our CRM instance. 

Note: you can  also login to powerbi.com and sign it with the user, whom you gave Power BI licence and start working on it. 



Comment if you need more info......





Wednesday, 28 June 2017

Create Application Insights for App Service in Azure to generate Logs in Azure - Adx Studio/CRM


Please see the below steps to create application insight in Azure:

Step 1) Create Application Insights – “Test Application Insights


a) Go to Application Insights by searching “Application Insights” in the Global Search and create new record by clicking on “Add” button [on the top]. 


              b) Create new Application Insight: Test Application Insights”.



       Step 2) Add application Insight in your App Service - [salestest]

                a) Go to App Services from left navigation

 



            b) Find your hosted App Service- salestest

            c) Search Application Insight from Search text box.

           d)  Select “existing resource” button and find “Test Application Insights” that we just 
                created in above step and click on OK.



  Step 3) Once it is done. Restart your service.





Comment if you require more info or visit  Jatin Nagpal LinkedIn Article ..



Thursday, 11 May 2017

Upgrade CRM Toolkit for Visual Studio 2015



Note:
Dynamics CRM 2013 Developer Toolkit runs on VS 2012 only. if you want to update to VS 2015, you need to upgrade your CRM developer toolkit that runs on both version.


Step 1) Uninstall the previous version of CRM Developer Toolkit if any

Step 2) Download and Install the new CRM Toolkit from the below link that supports in VS 2015 too. 


    



 Once it is installed, we can see the Template "Dynamics CRM" in the VS 2015



                               





Comment for more info..... 

Monday, 27 February 2017

How to debug scripts in Dynamics 365 Mobile/Tablet client

(T) Debug Account onLoad script for tablet/Mobile.

Note:

Create script file from web resource
============ new_account.js ================= 
       
   function OnLoadOfAccount() {
            debugger;
            alert("OnLoad called");
        }

=====Add function(OnLoadOfAccount) on Form load of Account entity ============





Step 1) Generate URL  


Ex.  

Note:
To get the OrgName, go to CRM > Settings > Customization > Click on “Developer Resources ”option and find the Unique Name




Step 2) Hit the generated URL on browser and download the XML






 Step 3) Go to Account, Open or create any record and check the debugger point



Comment if you require more info.......

Saturday, 25 February 2017

How to hide + Icon of sub grid using Ribbon Workbench in Dynamics CRM

Pre-requisites
                     Import Ribbon Workbench in your CRM instance.
a)       Go to the below link to download it.
https://ribbonworkbench.uservoice.com/knowledgebase/articles/80806-download-ribbon-workbench-for-crm-2011-2013-2015.

Steps to hide "+" icon of Contact sub grid from Account entity only.
             

Step 1) Create “Enable Rule” and add “Entity Rule” as step in Contact entity.


Step 2: Find Command names of “Add New{0}” and “Add Existing{0}” buttons.
    Note:
For hiding the + icon from contact subgird, we need to add enable rule for “Add New” and “Add Existing” buttons.




Step 3) Add Enable rule (new.contact.DisableAddIcon.EnableRule) for Command of “Add New” and “Add Existing” button.




Step 4: Publish the solution.


Output: 
“+” icon is hidden from Contact sub grid for Account record. Though if you open it in any other associated entity, it will be visible there.


Comment if you require more info....... 

How to Install/provision Dynamics Portal (SaaS) using Admin Center

Go to Office 365 Admin Center Go to https://portal.office.com/ Click on Admin Install Dynamics Portal for your CRM instance Clic...