Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

CRM 2016 - Launch quick create form from the command bar

$
0
0

Hi,

We made a decision to override the [+New] button on command bar for account entity and show the account quick create form using javascript. This is to give the users one consistent experience for account creation.

On click of the button, the quick create form is supposed to be launched by one simple JS statement:

Xrm.Utility.openQuickCreate("account", null, null);

But this was causing an internal CRM error. So, I tried this and it worked.

parent.Xrm.Utility.openQuickCreate("account", null, null);

Any thoughts if this approach is unsupported? I would like to only add new code which works seamlessly in phone/tablet clients as well. I can't test this change on those clients yet due to other issues in the application (upgraded from V2011).

Any other supported tricks to make this work will be appreciated.

Clarification: Xrm.Utility.openQuickCreate works when triggered from a form based script. It fails when triggered from the command bar.

Thanks,

Mayank


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>