Home
»
Microsoft Dynamics CRM
»
Hard-work-days of a Microsoft Dynamics CRM Freelance Developer
»
All Tags
»
Java Script
Browse by Tags
C#
Control
Custom page
Customization
Data Audit
Execute
Fetch
ISV Customization
Maps
Metadata Service
Microsoft CRM 2011
Microsoft CRM 4.0
MS CRM 4.0
N-N
Plugin
Public View
Queue
Reports
Ribbon Customization
Ribbon Workbench
Trick
Undocumented
Unsupported
WebResource
Workflow
Related Posts
Blog Post:
Microsoft Dynamics CRM 2011: Lookup address by ZIP Code
Andrii Butenko
This time I had task to write code that lookups address details (country, state and city) by entered postal code. I will share with my results in this post. In my code I used Google Geocoding Webservices . Why? Because I have already tried other geolocating webservices (like Bing) in previous projects...
on
7 May 2013
Blog Post:
Activity Feeds and Exceptions or How to fix something that should work
Andrii Butenko
During work I found following logs in event viewer: Exception information: Exception type: CrmException Exception message: Could not find a web resource with name Images/refresh.png. at Microsoft.Crm.Application.Components.Handlers.WebResource.RetrieveWebResource(String webResourceName, String preview...
on
13 Mar 2013
Blog Post:
MS CRM 2011: Replacement of textbox with picklist with configurable values
Andrii Butenko
During the work with CRM 4.0 I used this trick to solve similar tasks. Today I had to implement similar functionality and I decided to go supported way – JavaScript + WebResources. Create a html webresource with following content (I called it xrm_picklist.htm): <!DOCTYPE html PUBLIC "-//W3C/...
on
14 Jan 2013
Blog Post:
MS CRM 2011: Open new activity form with ‘Regarding’ field prefilled
Andrii Butenko
I had a task today to open new task form with Regarding field prefilled. Based on SDK description I tried to use following code to accomplish my task: var params = { regardingobjectid: referenced record id, regardingobjectidtype: referenced record type name, regardingobjectidname: referenced record display...
on
10 Jan 2013
Blog Post:
MS CRM 2011: How to refresh Associated or SubGrid from Ribbon button
Andrii Butenko
Today I have got requirement – create custom ribbon button placed to Associated View of entity, execute some logic and invoke refresh of grid. Last point was the trickiest one and that’s why I decided to share with approach how to do it. First step is to create library that will contain JavaScript that...
on
1 Nov 2012
Blog Post:
MS CRM 2011: How to check user rights on client side
Andrii Butenko
Today I have got requirement to write function which will validate rights of user. In our specific case we had to show/hide buttons on custom web form. I decided to post results of my work here. CheckUserPrivilege = function (privilegeName) { var context = (typeof GetGlobalContext != "undefined"...
on
7 Sep 2012
Blog Post:
MS CRM 2011: Strange issue with filtered lookup
Andrii Butenko
Today I was working with filtered lookup. Before I had no issues with it but today I faced with strange issue. var FetchXml = "" ; var LayoutXml = "" ; Xrm.Page.getControl( "Field Name" ).addCustomView( "00010000-0100-0010-0100-010000010001" , "Entity Logical...
on
14 Jul 2012
Blog Post:
MS CRM 2011: N-N Relationship control: checklistbox style
Andrii Butenko
I have developed WebResource for CRM which displays N-N relation in checklistbox style and decided to share it: Good thing in this control that you don’t need any knowledge of development to use it in your system. Here is instruction how to install it. Prerequisite is N-N relation in your system. For...
on
1 Jun 2012
Blog Post:
MS CRM 2011: Embed context report to left navigation pane
Andrii Butenko
Idea of this blog post is how to embed report to left navigation pane of Crm editing form. I have found this brilliant post which describes how to embed report into IFrame located on Crm editing form and I took this post as basis for current post. First step is to create report which will take current...
on
25 May 2012
Blog Post:
MS CRM 2011: Extended handling of Save events in Microsoft Dynamics CRM 2011
Andrii Butenko
About 1.5 ago I wrote post which describes how to work with additional parameters during save of form. I decided to go through all available standard forms and create extended list of available parameters. Here is the list of supported save modes which can be found at following article - http://technet...
on
3 Mar 2012
Blog Post:
MS CRM 2011: Bulk refresh of user details from AD
Andrii Butenko
When you create user in CRM all the available information is populated from AD into CRM user form. But in case information was changed in AD (email box, phone e.t.c.) - information will remain unchanged till the moment you will open form of user and change it. In case a lot of information was changed...
on
23 Feb 2012
Blog Post:
CRM 2011: Playing with notes control
Andrii Butenko
If you want for some reason to allow/disallow user to insert or edit notes in Microsoft Dynamics CRM 2011 following code can help you: function FormatNotesControl ( AllowInsert , AllowEdit ) { var notescontrol = document . getElementById ( 'notescontrol' ) ; if ( notescontrol = = null ) return...
on
8 Feb 2012
Blog Post:
Creating a Network Path Text Control for Microsoft Dynamics CRM 2011
Andrii Butenko
Following approach is a little bit unsupported so be careful using it. Create JavaScript webresource, put in it following code, call OnLoad method to be called during loading of form of your entity: function OnLoad ( ) { Transform ( " new_name " ) ; } function Transform ( fieldid ) { var c...
on
7 Feb 2012
Blog Post:
CRM 4.0 - detach answered email from queue
Andrii Butenko
One of my customers requested following functionality - detach email from queue when email is answered. Solution consists of 2 parts - customization of email (addition of source email field and JavaScipt which will extract id of source email) and Plugin which will handle Send message. Add custom...
on
28 Aug 2011
Blog Post:
CRM 4.0 - how to set 'Filter On' filter to value 'All' for Activities/History
Andrii Butenko
This script is based on amazing article of Michael Holne and updated for CRM 4.0. Just insert following code to OnLoad event handler of form like contact and account. function OverrideClickHandler ( loadAreaId , comboname ) { var navElement = document . getElementById ( 'nav' + loadAreaId ) ;...
on
2 Aug 2011
Blog Post:
CRM 4.0 - function which returns current user lookup
Andrii Butenko
Just for quick access. GetCurrentUserLookup = function ( ) { var xml = "<?xml version='1.0' encoding='utf-8'?>" + "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" + " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'"...
on
24 Jul 2011
Blog Post:
How to allow users to input allowed characters in Microsoft Dynamics CRM 4.0
Andrii Butenko
I have already posted here how to restrict user to input special characters to text fields. Following script will allow user to input only predefined symbols to text field. Add following script to OnLoad event handler: FilterCharacters = function ( fieldname ) { document . getElementById ( fieldname...
on
12 Jun 2011
Blog Post:
Getting Longitude and Latitude using JavaScript for Microsoft Dynamics CRM 4.0 Part 3
Anonymous
Several days ago I redeveloped geocoding solution . After several days new issues were found. So I decided to search other webservice which will solve this Geocoding solution and stopped at Bing Maps. First thing you have to do is to get key to work with Bing services. This can be done here - https:...
on
29 Jul 2010
Blog Post:
Getting Longitude and Latitude using JavaScript for Microsoft Dynamics CRM 4.0 Part 2
Anonymous
In my previous post I've described how to make possible getting Longitude and Latitude. But chosen webservice was not able to resolve some of addresses. In this post I will describe how to get coordinates using Google API. RefreshCoords = function ( ) { var address = '' ; if ( crmForm . all...
on
28 Jul 2010
Blog Post:
Getting Longitude and Latitude using JavaScript for Microsoft Dynamics CRM 4.0
Anonymous
I've developed this script for my customer - it gets longitude and latitude using webservise http://rpc.geocoder.us/ based on address. The Code: RefreshCoords = function ( ) { var address = '' ; if ( crmForm . all . address1_line1 . DataValue != null ) address = crmForm . all . address1_line1...
on
23 Jul 2010
Blog Post:
Extended handling of save event in forms with close dialog (like opportunitites)
Anonymous
All developers who developed JavaScripts for CRM read this article . But there is no info about getting data from fields of "Close dialogue" (like opportunity close). I've made a little research on this theme and here is the result: First of all - when you close opportunity event.Mode equals...
on
20 Jun 2010
Blog Post:
Intergration Google Maps v.3 into Microsoft Dynamics CRM 4.0
Anonymous
In this post I will describe how to integrate Google Maps v.3 with Microsoft Dynamics CRM 4.0 using IFrame customization. 1. I created simple html page with following code (I called this page MapIntegration.html): < html > < head > < meta name = "viewport" content = "initial...
on
18 Jun 2010
Blog Post:
Set default view for Service Calendar in Microsoft Dynamics CRM 4.0
Anonymous
My customer asked me to set default view for Service Calendar to 'Facility/Equipment'. I haven't found any available supported solution for this task, so I decided to use unsupported approach - inserting JavaScript in page of Service Calendar. 1. You should open folder of Microsoft Dynamics...
on
13 Jun 2010
Blog Post:
Delete teams button in Microsoft Dynamics CRM 4.0
Anonymous
There was question on AxForum - why it is not possible to delete team through interface. One of visitors - slivka_83 suggested to use SDK and Delete message. I've decided to make ISV.Customization which will add Delete button to Team grid. <Entity name = "team" > <Grid > <MenuBar...
on
26 May 2010
Blog Post:
Making Description Field Required in Close Opportunity Dialog
Anonymous
This is unsupported customization, so be careful. Open folder with your CRM website. Open SFA\opps subcatalog. Open dlg_closeopp.aspx file using notepad and find there following function: function applychanges ( ) { var retval = "" ; if ( actualend . DataValue == null ) { alert ( LOCID_CLOSE_DATE_NOT_SUPPLIED...
on
20 Jan 2010
1
2