locked
HTTP prefix on account entity RRS feed

  • Question

  • Hi,

     

    I could not find anything about this in a quick search so I thought I would ask.

     

    I have a customer who uses CRM 3.0 (along with another database) to populate a public facing website that lists links to other websites. 

     

    Due to the other applications when rendering the data from the database onto the web page it always prefixes http:// onto the address.  The other database stores all addresses as www.microsoft.com rather than http://www.microsoft.com

     

    Unfortunately CRM 3 prefixes http:// onto the address as it is saved, as a result the page always outputs http://http://www.microsoft.com for all addresses in the HREF and the link is then invalid.

     

    The change has to be put into CRM as changing the other app or the ASPX public website is a nightmare of version compatibility. 

     

    Obviously all the pre-existing data can be changed by a simple update statement against the account tables but I am having difficulty tracking down where the form pre-fixes the http:// on the save to put the fix in going forward.  Having been through a couple of javascript files I have not found anything that seems to do this alteration.

     

    Any ideas on where to go to shut this feature down?

     

    Ideally looking for a non-callout solution as I only have a budget for a couple of hours on this and don't really what to have to get into testing code.

     

    Ron.

     

    Wednesday, January 7, 2009 9:38 AM

Answers

  • HI Ron, Hi Donna,

     

    Donna, there is a mechanism in Dynamics CRM that prefixes specific data types with so called "allowed protocols", i.e. http:, https:. The code responsible for that is enclosed in the prefixHttp() method in one of the HTC files used by the application server. This prefix that you are referring to, Ron, is not added in plugins or callouts, but by the client side script. If you'd like to get rid of it, you can modify the INPUT.text.url.htc file stored in "<CRM installation directory>\_static\_forms\controls". Please remember that such a customization is not supported!

     

    Let me know whether that helps.

     

    Regards,

    Kuba Skalbania

    Wednesday, January 7, 2009 5:56 PM

All replies

  • HI Ron, Hi Donna,

     

    Donna, there is a mechanism in Dynamics CRM that prefixes specific data types with so called "allowed protocols", i.e. http:, https:. The code responsible for that is enclosed in the prefixHttp() method in one of the HTC files used by the application server. This prefix that you are referring to, Ron, is not added in plugins or callouts, but by the client side script. If you'd like to get rid of it, you can modify the INPUT.text.url.htc file stored in "<CRM installation directory>\_static\_forms\controls". Please remember that such a customization is not supported!

     

    Let me know whether that helps.

     

    Regards,

    Kuba Skalbania

    Wednesday, January 7, 2009 5:56 PM
  • Kuba,

     

    Thanks very much for that solution.  It has worked as we needed.

     

    And thanks also for the warning.  I was aware I was asking for an unsupported change but thanks for helping out.

     

    Ron.

    Wednesday, January 14, 2009 9:49 AM
  • Ron,

     

    You are welcome. I'm glad that it helped!

     

    Best regards

    Kuba

     

    Wednesday, January 14, 2009 10:42 AM