Hi Experts,
I am having requirement to open Quick create form from ribbon button but I am unable to find any option for the same.
I tried to use the below script but it is not available in MS CRM 2015 .Please suggest.
Thanks
Baji Rahaman
function openForm() {
var thisAccount = {
entityType: "new_customentity",
id: Xrm.Page.data.entity.getId()
};
var callback = function (obj) {
console.log("Created new " + obj.savedEntityReference.entityType + " named '" + obj.savedEntityReference.name + "' with id:" + obj.savedEntityReference.id);
}
var setName = { new_name: "Child account of " + Xrm.Page.getAttribute("new_name").getValue() };
Xrm.Utility.openQuickCreate("new_customentity", thisAccount, setName).then(callback, function (error) {
console.log(error.message);
});
}