Hi
I am calling a quick create form from html resource button click and form is getting opened. But the onload script is not getting execueted. However if i opened same quick create from global plus button on top it is getting executed. Below is the my code to call quick create from my html resource which opens the quick create with out the onload function execution
var entityFormOptions = {};
entityFormOptions["entityName"] = "custom_subscription";
entityFormOptions["useQuickCreateForm"] = true;
var parameters = {};
parameters["account_Id"] = window.parent.Xrm.Page.data.entity.getId();
window.parent.Xrm.Navigation.openForm(entityFormOptions,null,parameters).then(
function (success) {
//Any Specific action to be performed
console.log(success);
},
function (error) {
//Any specific action to be performed
console.log(error);
});
The Reason why i am passing accountid to the parameter is to reload the same account page as i am having some heavy html resource code on the account page which impact the record that will get added from this quick create.
So i thought of passing current account id to the quick create so that if this quick create triggered from the html resource i will reload the account page of same record id.
But my onload function on quick it self is not getting called, though i placed simple alert
Please Help
Vamsi
*This post is locked for comments