Posts

Azure migration sample code

using System; using System.Data; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data.SqlClient; using System.Data.OleDb; using Microsoft.SqlServer.Server; using Microsoft.SqlServer.Management.Smo; using System.Data.Odbc; namespace AzureApplication {     class Program     {         static void Main(string[] args)         {             //Microsoft.SqlServer.Server srv;             //srv = new Microsoft.SqlServer.Server();             ////Reference the AdventureWorks2012 database               //Database db;             //db = srv.Databases["AdventureWorks2012"];             ////Create a new database that is to be destination database.       ...

mobile app testing in ms crm path/url

https://mtc9063.crm8.dynamics.com//nga/main.htm?org=armanino&server=https://dem531.crm8.dynamics.com/

coding standards

Critical Items Statement: Xrm.Internal. Example:  'Xrm.Internal.openDialog'. Description: 'Xrm.Internal.openDialog' references an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model. Guideline: Xrm.Utility.openWebResource("new_webResourcename.htm", null, 300,300); Statement: Xrm.DialogOptions. Example:  'new Xrm.DialogOptions()'. Description: 'new Xrm.DialogOptions()' references an undocumented feature of the internal Dynamics CRM client object model. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model. Guildeline: according to your scenario use the supported   Xrm.Utility.openWebResource Statement : openStdWin(url, "", features) Comments : ...

Dynamically Generating Button On Crm Form

///http://missdynamicscrm.blogspot.in/2015/06/create-button-in-crm-form-javascript.html function btncal() {     createButton(id, defaultText, intWidth, onClickEventFunctionName); } function createButton(id, defaultText, intWidth, onClickEventFunctionName) {     debugger;     var btn = document.createElement("BUTTON");     // Create a <button> element, you can also use input,but need to set type to button     var t = document.createTextNode(defaultText);     btn.appendChild(t);     btn.className = "ms-crm-Button";     btn.id = id;     if (intWidth != null) {         btn.style.width = intWidth + "px";     }     else {         //defaulted width         btn.style.width = "100%";     }     btn.onmouseover = onCRMBtnMouseHover;     btn.onmouseout = onCRMBtnMouse...

Disassociating Relationship Between Two Records

//disassociatingRelationshipBetweenTwoRecords function disassociatingRelationship() {     //debugger;     if (confirm("Do You Want To Diassociate Records"))     {         var Id1 = Xrm.Page.getAttribute("nist_lookup").getValue();         var idValue = Id1[0].id;         var Id2 = Xrm.Page.data.entity.getId();         XrmSvcToolkit.disassociate({             entity1Id: idValue,             entity1Name: "Account",             entity2Id: Id2,             entity2Name: "nist_crudexample",             relationshipName: "nist_nist_crudexample_account",             async: false,             successCallback: function () {             ...

Converting Option set into CheckBox

function Form_onload() {     var optionset = document.getElementById("optionset_schema_name");     var multiline = document.getElementById("multiline_schema_name");     if (optionset != null && multiline != null) {         optionset.style.display = "none";            //"none" represents override of existing, the optionset field is overrided         var pdiv = document.createElement('div');    //Create an element         pdiv.style = 'overflow-y:auto; height:100px; border:2px #6699cc solid; background-color:#ffffff;';         //overflow y represents vertical scroll bar for options if options are more which will display if options are more.         optionset.parentNode.appendChild(pdiv);         // Convert option set to check box         for (var i = 1; i ...

When to use a workflow instead of a plug-in

When to use a workflow instead of a plug-in? Most operations that can be accomplished by using workflows can also be accomplished by using plug-ins. However, you should use workflow processes instead of plug-ins when: Changes in the business logic must be performed by people who are not developers, or the changes should not be dependent on the availability of a developer to do the work. When custom workflow activities are defined as Workflow .NET assemblies, a person who is not a developer can use Microsoft Dynamics CRM to define the conditions when the custom actions are performed and the parameters that will be passed to the assembly. You need the ability to let users apply your workflow logic manually. With workflow processes, users can trigger the processing of workflow rules by clicking Run Workflow on the form or from a grid. XAML workflows aren’t supported in Microsoft Dynamics CRM Online. XAML workflows for on-premises Microsoft Dynamics CRM.