Posts

Get All Administrators' Name in Dynamics CRM

This post is to show how you can get names of all CRM Administrators through JS in Dynamics CRM To get the names of all the admins, first of all, we need to query on 'Role'  entity where name equals 'System Administrator' and get the 'Full Name' of the user from the user-role relationship. Following code depicts the same. function getUserID() {     var crmURL = Xrm.Page.context.getClientUrl();     $.ajax({         type: "GET",         contentType: "application/json; charset=utf-8",         datatype: "json",         url: crmURL + "/XRMServices/2011/OrganizationData.svc/RoleSet?$select=systemuserroles_association/FullName&$expand=systemuserroles_association&$filter=Name eq 'System Administrator'",         beforeSend: function (XMLHttpRequest) {             XMLHttpRequest.setRequestHeader("Accept", "application/json...

Basic Create, Update, Fetch and Delete operations using Odata in Dynamics CRM

1.   Create: New records, or entries, are created by executing an HTTP POST request against the URI of the collection where the entry is to be created. The POST request includes the new entry in its body using either ATOM or JSON formats.

Java Script to get Business Unit of currently logged in user

This post is to show how you can get the Business Unit of currently logged in User in Dynamics CRM Step 1: Upload Jquery.min.js file as JScript web resource on the entity form. Step 2: Upload Json2.js file as JScript web resource on the entity form.

Java Script to get Teams of currently logged in user

This post is to show how you can get the Teams of currently logged in User in Dynamics CRM Step 1: Upload Jquery.min.js file as JScript web resource on the entity form. Step 2: Upload Json2.js file as JScript web resource on the entity form.

Creating a Grid dynamically using HTML in Dynamics CRM to show, update and delete associated records in an entity

This post is to show how you can create a dynamic grid in MS Dynamics CRM using HTML web resource on an entity's form to show, delete and update associated records of another entity using Jquery+Odata. Step 1: Upload Jquery.min.js file as JScript web resource on the entity form. Step 2: Upload Json2.js file as JScript web resource on the entity form.

Custom workflow to send e-mail after some specific working days provided at account creation

Image
This post is to send an email on account creation to the account holder after some specific days(in this code: 7). The email will be sent after 7 working days as described in the organization's Calendar and presuming every Saturday & Sunday as holiday. Step 1: Create new project in  Visual Studio and  select 'Class Library'. Then copy the code as below and save. Build the solution to get library file(*.dll) using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using Microsoft.Xrm.Sdk.Workflow;