Hi, I am trying to call the case quick create form from account ribbon, basically, I want to create associated case from this button, based on the MSDN reference, I came out the below javacript to call the webapi, for some reasons, it didn't work correctly, please help
function buttonClick(){ debugger; var setName = { name: Xrm.Page.getAttribute("name").getValue() }; var accountid = Xrm.Page.data.entity.getId(); var parentAccount = { entityType: "account", id: accountid, name: setName }; var parameters = {}; parameters["customerid"] = accountid; Xrm.Utility.openQuickCreate("incident", parentAccount, parameters); }