Andrew, through Ribbon command I am adding the parameter - Primary Control and Selected Entity Type Name.
Could you please advise how my code should be at the grid level ?
Currently I have this code to open Quick Create at the Form Level and I want to implement at Grid Level by passing the entity name dynamically.
function openQuickCreate(PrimaryControl) {
var formContext = PrimaryControl;
var entityName = formContext.data.entity.getEntityName();
var entityFormOptions = {};
var formParameters = {};
entityFormOptions['entityName'] = entityName;
entityFormOptions['useQuickCreateForm'] = true;
entityFormOptions['createFromEntity'] = formContext.data.entity.getEntityReference();
Xrm.Navigation.openForm(entityFormOptions, formParameters).then(
function () {
},
function (error) {
});
}