Dynamics 2011 QueryString Wrong

I have some JavaScript registered to the OnLoad event of the Appointment edit page in Dynamics 2011.

I have another page that launches a popup with the following url:


Note the myextraparameter=1 at the end. I need to get that parameter value in my OnLoad JavaScript....but the window.location in my JavaScript returns the following:


instead of the actual URL I need. What's more interesting is that at the top of the popup window, in the address bar, the URL is reflected correctly as


Xrm.Page.context.getQueryStringParameters() returns the same useless URL's parameters, not the one I need.

How can I get my parameter?


CRM restricts arbitrary query string parameters from forms.

You can customize a form to accept query string parameters that you can then grab with the Xrm.Page.context.getQueryStringParameters() method you've already referenced, the SDK has the details: http://technet.microsoft.com/en-us/library/gg334436.aspx

Need Your Help

How can I use a reg-free COM in a non-UI thread?

c# wpf multithreading reg-free

Ref: https://connect.microsoft.com/VisualStudio/feedback/details/457217/reg-free-com-fails-when-threaded#tabs

Multiple Forms with one login

javascript html asp-classic

So I want to have one login, but I have 2 different forms to distinguish different functions. How do I pass the login forms between the other 2 functions.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.