Tuesday, April 17, 2007

Use url-parameters in javascripts in CRM

I had a look at Jonas Deibe's blog today (Jonas is the foremost CRM expert at Microsoft Sweden) and found an interesting tip I thought I'd tell you about.

He explains how to catch a url-parameter in the Javascript code, something I'd find very useful, especially if creating an integration with for instance SharePoint, since I can use this to control what is shown and what is not.

For instance, if you have a sharepoint integration with CRM where there is an IFRAME on the accounts showing the customer site in SharePoint, and the customer site shows the CRM account in an IFRAME also. It might be advisable to not show the IFRAME showing the sharepoint site, if it is shown in Sharepoint (=loop). Then you could use this technique to handle this.

It could also be used for shooting data into a CRM form from some other system. The URL-parameter could then be written to a specific field, it could even be saved and closed using the javascript command for that, in essence creating a very simple integration of data. Not very beautiful but still might be useful, since it is easy to create and very unobstrusive. Might be interesting if a program can't consume webservices for instance.

There are certainly a million other uses for this, so enjoy!

Gustaf Westerlund
CRM and SharePoint Consultant

Humandata AB

No comments:

Post a Comment