Tags » Microsoft Dynamics CRM

Some Useful Information about Microsoft Dynamics CRM

So it comes as no surprise that all those who want to do better with their customers have possibly read every article and blog eulogizing about the… 236 more words

Microsoft Dynamics Solutions

SSRS Date Parameter

First day of last month:

=dateadd("m",-1,dateserial(year(Today),month(Today),1)) 

First day of this month:

=dateadd("m",0,dateserial(year(Today),month(Today),1)) 

First day of next month:

=dateadd("m",1,dateserial(year(Today),month(Today),1)) 

Last day of last month:

=dateadd("m",0,dateserial(year(Today),month(Today),0))

Last day of this month: 27 more words

Microsoft Dynamics CRM

MSCRM Javascript Open Asp.Net Customs Form

function openCustomForm()
{
	var accountID =	encodeURIComponent(Xrm.Page.data.entity.getId());
	var userID =encodeURIComponent(Xrm.Page.context.getUserId());

    	Url = "<<IIS Customs Web Application Path>>.aspx?Guid=" + accountID +"&UserId=" +userID ;

    	var features = "height=768, width=1024, resizable=yes,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes";

    	window.open(Url, "_blank", features, false);
}
Microsoft Dynamics CRM

MSCRM Javascript Retrieve System User Information

//Get Server URL
var ODataHost = location.protocol +"//" + window.location.host + "/" + Xrm.Page.context.getOrgUniqueName();
// Creating the Odata Endpoint
var ODataService = "/xrmservices/2011/OrganizationData.svc";
var ODataQuery ="/SystemUserSet?$filter=SystemUserId eq guid'" + Id + "'";
var ODataURL = ODataHost + ODataService + ODataQuery;

$.ajax({
            type: "GET",
            contentType: "application/json; charset=utf-8",
            datatype: "json",
            url: ODataURL,

            beforeSend: function (XMLHttpRequest) {
                XMLHttpRequest.setRequestHeader("Accept", "application/json");
            },

            success: function (data, textStatus, XmlHttpRequest) {
               // alert("success");
var City = null;
var State = null;
 var CountryCode = null;
if(data.d.results.length > 0)
{
                City = data.d.results[0].new_City;
                State = data.d.results[0].new_State;
                CountryCode = data.d.results[0].new_CountryCode;
}

Microsoft Dynamics CRM

MSCRM Javascript Get Security Role


function getCurrentUserAccessRight()
{
var roleId = Xrm.Page.context.getUserRoles();
for (var i = 0; i < roleId.length; i++) {
         var userRoleId = roleId[i];
    var userRoleName = GetRoleName(userRoleId);
        if (userRoleName == "System Administrator") {
         return true;
        }
    }
//alert("Insufficient Permission !");
return false;
}


function GetRoleName(roleId) {
    var serverUrl = location.protocol + "//" + location.host + "/" + Xrm.Page.context.getOrgUniqueName();
    var odataSelect = serverUrl + "/XRMServices/2011/OrganizationData.svc" + "/" + "RoleSet?$filter=RoleId eq guid'" + roleId + "'";
    var roleName = null;
     $.ajax(
        {
            type: "GET",
            async: false,
            contentType: "application/json; charset=utf-8",
            datatype: "json",
            url: odataSelect,
            beforeSend: function (XMLHttpRequest) { XMLHttpRequest.setRequestHeader("Accept", "application/json"); },
            success: function (data, textStatus, XmlHttpRequest) {
                roleName = data.d.results[0].Name;
            },
            error: function (XmlHttpRequest, textStatus, errorThrown) { alert('OData Select Failed: ' + textStatus + errorThrown + odataSelect); }
        }
    );
    return roleName;
}

Microsoft Dynamics CRM

Connecting two stand-alone active directories (or forests) to authenticate remotely into CRM from a Federated Active Directory

Many times, a Microsoft Dynamics CRM implementation company has to deal with the situation of connecting two stand-alone active directories (or forests) to authenticate remotely into CRM from a Federated Active Directory that contains the customer’ 15 more words

Microsoft Dynamics CRM

Microsoft Dynamics CRM 2015 SDK v7.1.1 Released

Microsoft Dynamics CRM Software Development Kit (SDK) for CRM Online and on-premises CRM 2015

Contains the complete software development kit for Microsoft Dynamics CRM Online and Microsoft Dynamics CRM 2015, and the User Interface Integration (UII) SDK

Download SDK

Microsoft Dynamics CRM