Pass custom query string parameter in CRM 2013.
Hello CRM Developers,
This is my new post in which I am going to describe how to pass custom query string parameter in crm2013.
It is a very good feature of query string parameter in MS CRM. But we have to take care of use it because query string parameter will be visible to end user, so you should not pass confidential info in query string.
By default MS CRM allows a set of query string parameters to be passed to a crm form, these parameter must use a standard naming convention.
For detailed information you can fallow this link.
http://msdn.microsoft.com/en-us/library/gg334375.aspx
There may be requirement of pass custom query string parameter in your crm2013 application. in this post I am going to tell you how to pass custom parameter of different data types.
Step 1:- Go to Settings=> Customizations => Customize The System
=> Entities=>Your Entity=>Forms and Fallow steps as shown in
image.
image.
Step 2:- Now add the following java script code in your crm 2013 web
resource.
window.open(Xrm.Page.context.getServerUrl() +"/main.aspx?etn=account&extraqs=parameter_0=test&pagetype=entityrecord");
//To Access the query string parameter on target use the following code
var parameters = Xrm.Page.context.getQueryStringParameters();
var ParameterValue= parameters ["parameter_0"];
Note : - Remember one importent thing your parameter should add just after
the "extraqs". Like "main.aspx?etn=contact&extraqs=param_1=test&
pagetype=entityrecord”.
For more information you can visit the fallowing link.
http://msdn.microsoft.com/en-us/library/gg334436.aspx
http://msdn.microsoft.com/en-us/library/gg328131.aspx
For further help you can leave a comment.
Enkoy the great technology Dynamics CRM. Good Luck .....!!!!
Thanks
No comments:
Post a Comment