Dynamics CRM - Open quick create form from home page ribbon button.

First we will write js code. 

function OpenQuickCreate() {

 debugger;

 var entityFormOptions = {};

    entityFormOptions["entityName"] = " "; //entity name

    entityFormOptions["useQuickCreateForm"] = true;

 var formParameters = {};

  // Open the form.

    Xrm.Navigation.openForm(entityFormOptions, formParameters).then(

        function(success) {

            console.log(success);

        },

        function(error) {

            console.log(error);

        });

 }

Note: Please click on the image to see more detail view.








Comments

Popular posts from this blog

Dynamics 365 OAuth2 CRM Web API Request based on ADFS 2016 and generate token based access to CRM.

Make Dynamics CRM view editable.