Some time we need to validate based on their input values and need to close crm form if they are not validated, we can do this validation through plugin but, we can’t close form through plugin. So Javascript comes in picture here. We can do this through JS code. To close ms crm form we have close method available, we… Read more »
if you want to set default price list with help of java script, you can use Rest, below is the code to fetch pricelist id based on pricelist name and set it Note: We have created a Default pricelist.
MS CRM 2011 training kit is released. you can download it from below URL http://www.microsoft.com/downloads/en/details.aspx?FamilyID=78498c29-28ac-440b-9c20-ec5da6ee6e98&displaylang=en Happy Learning….!!!
If you are getting below error while trying to access MS CRM 2011 deployment manager check if “SQL Server Agent” service is running or not, if not just start this services and then try Enjoy!!
In MS CRM 4.0 we used to get parent entity information using window.opener which is not there in CRM 2011 now. In CRM 2011 you can use below code window.top.opener.parent.Xrm.Page so using this statement you can get parent entity information and can fetch parent entity data, but sometime we also need to check parent entity name, let’s take an example… Read more »
If you are a Microsoft partner you can download MS CRM 2011 Virtual Machine from https://mbs.microsoft.com/Cms/Templates/document/General.aspx?NRMODE=Published&NRNODEGUID={060C9677-229D-49E1-9F00-95E56D9F1657}&NRORIGINALURL=/partnersource/deployment/methodology/vpc/MSD_CRM2011VirtualMachine&NRCACHEHINT=Guest&w&wa=wsignin1.0 Enjoy !!
If you want to get current user id in crm 2011 form you can use Xrm.Page.context, you have to use getUserId() method for this you can use it like below Xrm.Page.context.getUserId() But if you want to get current user name then you can use below function to retrieve it function Getinfo() { var context; var serverUrl; var UserID; var ODataPath;… Read more »
During upgrade process from CRM 4.0 to CRM 2011, I found default ISV custom buttons in account form (I did not remove it ms crm 4.0). Removing then in CRM 2011 is much easier then CRM 4.0. Just open account entity form, select “Navigation”, it will highlight navigation area in entity form like below screen Select navigation link that you… Read more »
//Hide Section in Xrm.Page.ui.tabs.get(“Name of the tab”).sections.get(“Name of the section”).setVisible(true); Xrm.Page.ui.tabs.get(“Name of the tab”).sections.get(“Name of the section”).setVisible(False); //Force Submit method has changed to Xrm.Page.getAttribute(“Field Name”).setSubmitMode(“always”); //Get Selected Picklist value var _Value = Xrm.Page.getAttribute(“Name of Picklist”).getSelectedOption().text; //Get Entity Attributes based on ID var context; var serverUrl; var ODataPath; function Getinfo() { context = Xrm.Page.context; serverUrl = context.getServerUrl(); ODataPath… Read more »
Every MS CRM implementation requires lot’s of JS code to implement validation and business logic using client side. As you know we can call MS CRM web services in JS to retrieve MS CRM data and insert ms crm data. But in MS CRM 4.0 there was no way to share JS code indifferent entities forms in supported way. You… Read more »