Dynamics CRM Bookmarklets V2

About a half year ago, I’ve shared my Dynamics CRM Bookmarklets collection with you. Currently the collection has been reworked several times and the number of Dynamics CRM Bookmarklets Sammlung has been nearly doubled. I was influenced particularly with the new ideas for the bookmarklets by Jukka’s ‘CRM Navigation Hacking’ and Markus ‘Find Dependencies for Uninstalling Solutions’.

Compared to my first “Dynamics CRM bookmarklets” article, the display format has changed. Mainly because the implementation was not working clean as a hyperlink. In addition, some functions were still packed in an anonymous function.

Do you want to use one of bookmarklets, you just need to creat any bookmark in the bookmark toolbar of your browser and you change the URL to “javascript: (function () {…” and everything after the line comes from.

If you work with several browsers and want to your bookmarks synced in all of them I can recommend you Xmarks.

Updates!

  • 2017-09-21: added “open record by id”
  • 2017-09-21: updated “update view”
  • 2015-07-19: added “new solution” and “open default solution”
  • 2015-04-26: added “open perfomance center”
  • 2015-04-19: added “update view”
  • 2015-04-15: added “clear localStorage” and “clear seesionStorage”

Should you have own ideas or bookmarks that I have not covered here, you can send me them very gladly.

 


Pass parameters to HTML Webresource

A HTML webresource can not just only show HTML elements on your form, furthermore you can work with JavaScript in it and interact with your form. IF you want to access the Xrm namespace of the form inside your HTML webresource, you simply need prepend “window.parent” to your function call.

This looks like in this example:

If you need a lot of such calls, you can make your life easier and create your own local variable and assign it the complete Xrm namespace
This could look like this:

Pass parameters to HTML Webresource

Alternatively, you can also pass static values to your webresource. Just add a custom parameter in properties dialog of the webresource.

Pass parameters to HTML Webresource

You can access the custom and contaxt parameters with the following script inside your webresource:

The custom parameters should be in the form “Name=Value” should be separated by comma.

The debugger shows you all the accessible parameters:

Pass parameters to HTML Webresource

Context parameters are green marked, custom parameters blue.

You can now access your values through the named array.

Have fun with it!

 


Dynamics CRM Bookmarklets

Nachdem ich im Netz immer wieder über pfiffige Bookmarklets für Dynamics CRM stolpere (vor allem auf dem Blog der Kollegen von Magnetism) und mittlerweile auch ungefähr zwanzig Stück davon in meiner Lesezeichenleiste im Einsatz habe, möchte ich diese für euch sammeln und mit euch teilen.

Kommen wir erstmal zur Definition einer Bookmarklets, damit Ihr wisst worüber ich spreche: Ein Bookmarklet ist ein in JavaScript geschriebenes Makro, das als Lesezeichen abgespeichert wird und dadurch die Funktionen eines Webbrowsers erweitert. Es erlaubt das Aussehen oder die Funktionalität von Webseiten (Dynamics CRM ist mehr oder weniger nur eine Webseite) clientseitig zu verändern.

Ihr könnt die Bookmarklets einfach per Drag&Drop in eure Lesezeichenleiste ziehen oder ihr kopiert die die URL und erstellt euch ein neues Lesezeichen mit dieser.

CRM Bookmarklets für Anwender

CRM Bookmarklets für Administratoren und Systemanpasser