locked
Adding more parameters to a CRM url. (CRM 4.0) RRS feed

  • Question


  • Hi
    From a custom application I have a link to the create contact form in CRM.  That part works fine. However I like to add a custom parameter to the url and then read that parameter using javascript in the onLoad event on the CRM form.

    This gives a CRM error:

    http://" + servername + "/" + orgname + "/sfa/conts/edit.aspx?customvalue=1

    This removes the customvalue from the url:

    http://" + servername + "/" + orgname + "/sfa/conts/edit.aspx#customvalue=1

     

    Any suggestions or cant this be done?

     

    /c

    Friday, February 27, 2009 9:33 AM

Answers

  • Hi Christian Dollerup,

    YES, it can be done. I am using this now :)

    Default CRM enabled the parameter filtering, that means if u add/append custom parameters in CRM url, it will prompt error OR

    you just cant query string it out.

    TO resolved this problem, simply add a regedit key in MSCRM application server.

    Read my post HERE. Detail step by step configuring shows inside. :P lazy to write again..

     

    regards,

    Toong Yang 


    http://eastoceantechnical.blogspot.com/
    Friday, February 27, 2009 11:22 AM

All replies

  • Hi Christian Dollerup,

    YES, it can be done. I am using this now :)

    Default CRM enabled the parameter filtering, that means if u add/append custom parameters in CRM url, it will prompt error OR

    you just cant query string it out.

    TO resolved this problem, simply add a regedit key in MSCRM application server.

    Read my post HERE. Detail step by step configuring shows inside. :P lazy to write again..

     

    regards,

    Toong Yang 


    http://eastoceantechnical.blogspot.com/
    Friday, February 27, 2009 11:22 AM
  • Hi Yang 

    Great. I'll give it a try first thing Monday. :-)
    Saturday, February 28, 2009 9:08 PM
  • If you want to keep it supported i suggest creating a new attribute. something like new_supportedquerystring and use that instead. you can also create a simple protocol and process the attribute string as you would do with a normal query string.

    for example. "/sfa/acct/edit.aspx?new_supportedquerystring=param1|value1,param2|value2
    and process the value on the onload event.

    for example:

    if (crmForm.new_supportedquerystring.DataValue =! null)  
    {  
        var queryString = crmForm.new_supportedquerystring.DataValue;  
        var paramteres = queryString.split(',');  
        for (var i = 0 ; i < parameters.length ; i++)  
       {  
            var parameter = parameters[i].split('|');  
            var key = parameter[0];  
            var value = parameter[1];  
            // more processing here...  
     
       }  
    }  
     

    good luck
    Saturday, February 28, 2009 9:28 PM