Open quick create from on command button click model driven power apps code
to open quick create form on command button click use below code.
function quickCreate() {
var parameters = {};
//Set the Parent Customer column value to "Contoso".
parameters["hsbc_customer"] = "b2d7bd78-1d2c-ee11-bdf5-000d3a0a75a6";
parameters["hsbc_customername"] = "Catalina Bedford";
parameters["hsbc_customertype"] = "contact";
parameters["hsbc_type"] = 768280000;
var entityFormOptions = {};
entityFormOptions["entityName"] = "hsbc_hsbcbankaccount";
entityFormOptions["useQuickCreateForm"] = true;
Xrm.Navigation.openForm(entityFormOptions,parameters).then(
function (success) {
console.log(success);
},
function (error) {
console.log(error);
});
}
watch video here.
Open quick create form on command button click JS power apps
hope it helps.