| Microsoft CRM
Houston (800) 892-6143 |
| Implementation & Customization |
Using Request.QueryString in JavaScript and HTML to retrieve form parameters and pass them to a new URL.
The idea here is that you want to add a CRM Form Button to your entity and have it execute something, i.e. call a custom report in SSRS (one that isn't available using the contextual reports menu) or a custom webservice that you have written. Most of the examples that I have seen are using window.dialogArguments to redirect the page, however I have found a handy .js file that when referenced will allow you to easily use the Request.QueryString method (courtesy of Andrew Urquhart) You can download the source code for js file needed to complete the Request.QueryString here.
It is assumed that you know how to add the button into your ISV.Config file, if not then click here for an example of how to add a button using the ISV.config in MSCRM 4.0.
If you review the above ISV.config file for this example, you will see that we are calling an HTML redirect page. The code for the redirect page that the button will call to pass parameters from a CRM 4.0 Button can be viewed here. You will see in the redirect page that the JavaScript source file is being referenced. Once that is done, it is as simple as knowing the names of the parameters that can accessed using this method. Click here for a complete list of methods that can be accessed in CRM 4.0 using the Request.QueryString function in JavaScript.
|
| Training | |
| Microsoft CRM 101 | |
| Microsoft CRM for Outlook | |
| Microsoft CRM Advanced Find | |
| Microsoft CRM Reports | |
| Microsoft CRM Database | |
|
Microsoft CRM Web Services |
|
|
Microsoft CRM JavaScript |
|
|
Microsoft CRM Add-ons |
|
| Microsoft CRM Resources | |
| Microsoft CRM Callouts | |
| Microsoft CRM Workflow | |
|
|
|