Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Quick Create Onload Function Not Firing when it got opened from html resource

Posted on by 50

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans