I have recently started using bookmarklets to improve productivity during CRM Development. There are plenty of bookmarklets that I use, and of these I quite frequently use these:
Here is the how it looks when you run the code on a row in the advanced find result.
I have tested this in the latest version of Firefox (33) and Chrome (38) and it works.
- Copy Record Id (http://blog.sonomapartners.com/2014/01/crm-2013-javascript-bookmark-series-part-1.html)
- Open Advanced Find (http://www.magnetismsolutions.com.au/blog/paulnieuwelaar/2014/07/24/crm-2013-open-advanced-find-from-anywhere-with-bookmarklet)
- Open Default Solution (http://www.magnetismsolutions.com.au/blog/paulnieuwelaar/2014/07/27/customize-and-publish-from-crm-2013-forms-with-bookmarklets)
javascript:var contentFrame=document.getElementById('contentIFrame0'),isError=false;if(contentFrame){var resultFrame=contentFrame.contentWindow.document.getElementById('resultFrame');if(resultFrame&&resultFrame.contentWindow){var selectedRow=resultFrame.contentWindow.document.querySelector('.ms-crm-List-SelectedRow');if(selectedRow){window.prompt('Copy to clipboard: Ctrl+C, Enter',selectedRow.getAttribute('oid'));} else{alert('Please select a row to get the id');}}else{isError=true;}}else{isError=true;} if(isError){alert('Unable to locate result frame to extract rowid');} void 0;
Here is the how it looks when you run the code on a row in the advanced find result.
I have tested this in the latest version of Firefox (33) and Chrome (38) and it works.
No comments:
Post a Comment