Posts

Showing posts with the label Ajax

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.