advance javascript Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/advance-javascript/ Microsoft Dynamics CRM . Microsoft Power Platform Fri, 24 Apr 2020 15:10:44 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32&ssl=1 advance javascript Archives - Microsoft Dynamics 365 Blog https://microsoftdynamics.in/category/advance-javascript/ 32 32 176351444 Telerik Kendo UI: Get sum and average of selected items of a grid in alert / Field / popup for specific columns https://microsoftdynamics.in/2018/02/20/telerik-kendo-ui-get-sum-and-average-of-selected-items-of-a-grid-in-alert-field-popup-for-specific-columns/ Tue, 20 Feb 2018 13:48:00 +0000 Scenario: Recently we were having a requirement to get sum and average of selected items on a grid in either an alert / Field or popup Such as in the below example I want to get the average and Sum of selected Frieght columns And also we wanted to allow this feature only on numeric fields....

The post Telerik Kendo UI: Get sum and average of selected items of a grid in alert / Field / popup for specific columns appeared first on Microsoft Dynamics 365 Blog.

]]>

Scenario:

Recently we were having a requirement to get sum and average of selected items on a grid in either an alert / Field or popup
Such as in the below example I want to get the average and Sum of selected Frieght columns
And also we wanted to allow this feature only on numeric fields.

Solution:

We were able to archive the desired result by using the change event, select and the dataItem methods to get the value of the selected cells. Then we used column index to get the selected column. And to restrict the calculation only for numeric column we programmatically remove the k-state-selected class from the desired cells.

Code Snippet :

<script>
$(document).ready(function () {
$(“#grid”).kendoGrid({
dataSource: {
type: “odata”,
transport: {
read: “https://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders”
},
schema: {
model: {
fields: {
OrderID: { type: “number” },
Freight: { type: “number” },
ShipName: { type: “string” },
OrderDate: { type: “date” },
ShipCity: { type: “string” }
}
}
},
pageSize: 20
},
height: 550,
filterable: true,
sortable: true,
pageable: true,
selectable: “multiple cell”,
columns: [{
field: “OrderID”,
filterable: false,
selectable: false
},
“Freight”,
{
field: “OrderDate”,
title: “Order Date”,
format: “{0:MM/dd/yyyy}”,
selectable: false
}, {
field: “ShipName”,
title: “Ship Name”,
selectable: false
}, {
field: “ShipCity”,
title: “Ship City”,
selectable: false
}
]
});
var grid = $(“#grid”).data(“kendoGrid”);
grid.bind(“change”, grid_change);
});

function grid_change(e) {
debugger;
var selectedCells = this.select();
var cellOne = selectedCells[0]
var colIdx = this.select().index();
var colName = $(‘#grid’).find(‘th’).eq(colIdx).text()
if (colName === “Freight”) { // execute only for number columns
var selectedDataItems = [];
var sumOfSelectedItems = 0;
var averageOfSelectedItems = 0;
for (var i = 0; i < selectedCells.length; i++) {
var dataItem = this.dataItem(selectedCells[i].parentNode);
if ($.inArray(dataItem, selectedDataItems) < 0) {
selectedDataItems.push(dataItem);
}
}
for (let i = 0; i < selectedDataItems.length; i++) {
sumOfSelectedItems += parseFloat(selectedDataItems[i].Freight);
}
averageOfSelectedItems = sumOfSelectedItems / (selectedDataItems.length);
averageOfSelectedItems = parseFloat(averageOfSelectedItems);
alert(“Sum : “+ sumOfSelectedItems.toFixed(2));
alert(“Average : ” + averageOfSelectedItems.toFixed(2));
$(“#sumvalue”).empty();
$(“#sumvalue”).append(sumOfSelectedItems.toFixed(2));
$(“#Averagevalue”).empty();
$(“#Averagevalue”).append(averageOfSelectedItems.toFixed(2));
$(“#calculatedFields”).show();
}
}
</script>
</head>
<body>
<div class=”container-fluid”>
<div class=”row k-header”>
<h1> My App</h1>
</div>
</div>
<div class=”container-fluid”>
<div class=”demo-section k-content”>
<div id=”calculatedFields” style=’float: left; display:none;’>
<div style=’float: left; margin-right: 30px;’>
<span id=”lblSum”> Sum : </span>
<label id=”sumvalue”></label>
</div>
<div style=’float: left; margin-right: 30px;’>
<span id=”lblAverage”>Average : </span>
<label id=”Averagevalue”></label>
</div>
</div>
</div>
<div>
<div class=”row”>
<div class=”col-xs-18 col-md-12″>
<div id=”grid”></div>
</div>
</div>
</div>
</div>
<div class=”container-fluid”>
<div class=”row”>
<div class=”col-xs-18 col-md-12″>
<div id=”grid”></div>
</div>
</div>
</div>
</body>
</html>

 

Demo URL :

For your reference I made an example demonstrating this requirement :

https://dojo.telerik.com/@Shashank%20Binjola/EtEwe

Other Useful URLs:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/events/change#change

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/select

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/dataitem

Hope It Helps 😊

Happy Coding ✌
SOURCE : mscrm.com

The post Telerik Kendo UI: Get sum and average of selected items of a grid in alert / Field / popup for specific columns appeared first on Microsoft Dynamics 365 Blog.

]]>
2741
Create and Send Email Message Activity from javascript using api D365 / MS CRM 2016 https://microsoftdynamics.in/2018/01/07/create-and-send-email-message-activity-from-javascript-using-api-d365-ms-crm-2016/ Sun, 07 Jan 2018 09:06:00 +0000 For Creating email message activity from java script MS CRM , you can update and use the below code according to your requirement. Here to show I have taken up a scenario to send a email to system user when a Quote is won. Replace the User GUID for to and from user in “fromFieldIdSystemAdmin”...

The post Create and Send Email Message Activity from javascript using api D365 / MS CRM 2016 appeared first on Microsoft Dynamics 365 Blog.

]]>
For Creating email message activity from java script MS CRM , you can update and use the below code according to your requirement. Here to show I have taken up a scenario to send a email to system user when a Quote is won.

Replace the User GUID for to and from user in “fromFieldIdSystemAdmin” and  “toPartyUsersId”

function CreateEmail() {
    var fromFieldIdSystemAdmin = "53536B3D-4D71-4FC2-857C-0477750A92BE"; //todo Email from User GUID
    var toPartyUsersId = ["53536B3D-4D71-4FC2-857C-0477750A92BE"]; //todo Email To user array
    var quoteId = Xrm.Page.data.entity.getId();
    quoteId = quoteId.replace(/[{}]/g, "");
  var customerLookUp = Xrm.Page.getAttribute("customerid");
    var accountName = null;
    if (customerLookUp != null)
        accountName = customerLookUp.getValue()[0].name;
    var webapiPath = Xrm.Page.context.getClientUrl() + "/api/data/v8.0/emails";
    var email = {};
    //Lookup
    email["regardingobjectid_quote@odata.bind"] = "/quotes(" + quoteId + ")"; //Regarding is quote
    email["subject"] = "Quote Sent ";
    email["description"] = "See attachment for the Quote that was set as Won";
    var parties = [];
    //ActivityParty (From)
    var sender = {};
    sender["partyid_systemuser@odata.bind"] = "/systemusers(" + fromFieldIdSystemAdmin + ")";
    sender["participationtypemask"] = 1; //From
    parties.push(sender);
    for (i = 0; i < toPartyUsersId.length; i++) {
        var receiver = {};
        receiver["partyid_systemuser@odata.bind"] = "/systemusers(" + toPartyUsersId[i] + ")";
        receiver["participationtypemask"] = 2; //To
        parties.push(receiver);
    }
    email["email_activity_parties"] = parties;
    var service = new XMLHttpRequest();
    service.open("POST", webapiPath, false);
    service.setRequestHeader("Accept", "application/json");
    service.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    service.setRequestHeader("OData-MaxVersion", "4.0");
    service.setRequestHeader("OData-Version", "4.0");
    service.send(JSON.stringify(email));
    if (service.readyState == 4) {
        if (service.status == 204) {
            var uri = service.getResponseHeader("OData-EntityId");
            var regExp = /(([^)]+))/;
            var matches = regExp.exec(uri);
            var emailGblId = matches[1];
            SendEmail(emailGblId);
        } else {

            Xrm.Utility.alertDialog(this.statusText);
        }
    }
}

function SendEmail(emailGblId) {
    var parameters = {};
    parameters.IssueSend = true;
    var req = new XMLHttpRequest();
    req.open("POST", Xrm.Page.context.getClientUrl() + "/api/data/v8.1/emails(" + emailGblId + ")/Microsoft.Dynamics.CRM.SendEmail", true);
    req.setRequestHeader("OData-MaxVersion", "4.0");
    req.setRequestHeader("OData-Version", "4.0");
    req.setRequestHeader("Accept", "application/json");
    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    req.onreadystatechange = function () {
        if (this.readyState === 4) {
            req.onreadystatechange = null;
            if (this.status === 200) {
                var results = JSON.parse(this.response);
            } else {
                Xrm.Utility.alertDialog(this.statusText);
            }
        }
    };
    req.send(JSON.stringify(parameters));
}

function successCallback() {
}
function errorCallback() {
}

Happy Coding 😊

SOURCE : mscrm.com

The post Create and Send Email Message Activity from javascript using api D365 / MS CRM 2016 appeared first on Microsoft Dynamics 365 Blog.

]]>
2759
Set only contact entity or only Account entity customer field lookup in case / Opportunity for ms crm https://microsoftdynamics.in/2016/03/11/set-only-contact-entity-or-only-account-entity-customer-field-lookup-in-case-opportunity-for-ms-crm/ Fri, 11 Mar 2016 10:01:00 +0000 http://microsoftdynamics.in/2016/03/11/set-only-contact-entity-or-only-account-entity-customer-field-lookup-in-case-opportunity-for-ms-crm/ Set potential customer look up field to only for contact entity record. By default out of the box functionality gave a pop up with two entity type -contact & account for customer lookup field , if your requirement is to set only contact or only account as entity it can be done using javascript as...

The post Set only contact entity or only Account entity customer field lookup in case / Opportunity for ms crm appeared first on Microsoft Dynamics 365 Blog.

]]>

Set potential customer look up field to only for contact entity record.

By default out of the box functionality gave a pop up with two entity type -contact & account for customer lookup field ,
if your requirement is to set only contact or only account as entity it can be done using javascript as given below ,

Both Contact and Account are viewed by Default 

Only Contact records are views
Only Contact is selected and read only

Both account and contact shown by default 
function disableaccountfromcustomer() {
debugger;
//timeout of 1sec
    setTimeout(function () {
debugger;
        var getid = $(‘#customerid_i’); //customer field id contain account and contact both view
        getid .attr(‘defaulttype’, ‘2’); // default advance find entity type to contact
        getid .attr(‘lookuptypes’, ‘2’); //change lookup view to contact
    }, 1000);

}

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Set only contact entity or only Account entity customer field lookup in case / Opportunity for ms crm appeared first on Microsoft Dynamics 365 Blog.

]]>
2784
Convert Image file to stream / base64Image using javascript / jquery . https://microsoftdynamics.in/2015/09/01/convert-image-file-to-stream-base64image-using-javascript-jquery/ Tue, 01 Sep 2015 12:00:00 +0000 http://microsoftdynamics.in/2015/09/01/convert-image-file-to-stream-base64image-using-javascript-jquery/ Below Code convert the image file to base64 which can be used to compare image etc .  var imgvar = new Image();         imgvar.src = SourceOfFile;         imgvar.onload = function () {                        var canvas = document.createElement(“canvas”);    ...

The post Convert Image file to stream / base64Image using javascript / jquery . appeared first on Microsoft Dynamics 365 Blog.

]]>
Below Code convert the image file to base64 which can be used to compare image etc .

 var imgvar = new Image();
        imgvar.src = SourceOfFile;
        imgvar.onload = function () {              
         var canvas = document.createElement(“canvas”);
         canvas.width = this.width;
         canvas.height = this.height;
     
         var ctx = canvas.getContext(“2d”);
         ctx.drawImage(this, 0, 0);
         var dataURL = canvas.toDataURL(“image/png”);
      var base64Image = dataURL.replace(/^data:image/(png|jpg);base64,/, “”);
Thanks

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Convert Image file to stream / base64Image using javascript / jquery . appeared first on Microsoft Dynamics 365 Blog.

]]>
2794
Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 https://microsoftdynamics.in/2015/06/10/get-form-type-and-save-modes-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ Wed, 10 Jun 2015 13:49:00 +0000 http://microsoftdynamics.in/2015/06/10/get-form-type-and-save-modes-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ getSaveMode() : Its Return a value telling what was the save event of ms crm entity record ( like is it due to deactivation of form , manual save or save and close etc) below is the full list of events . // CodeexecObj.getEventArgs().getSaveMode(); Event Mode Value Save 1 Save and Close 2 Deactivate 5...

The post Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
getSaveMode() : Its Return a value telling what was the save event of ms crm entity record ( like is it due to deactivation of form , manual save or save and close etc) below is the full list of events .

// Code
execObj.getEventArgs().getSaveMode();

Event Mode Value
Save 1
Save and Close 2
Deactivate 5
Reactivate 6
Send (Email) 7
Disqualify (Lead) 15
Qualify (Lead) 16
Assign (user or team owned entities) 47
Save as Completed (Activities) 58
Save and New 59
AutoSave 70

getFormType() :  Its Return a value Telling about form type of ms crm entity record ( Update , or create etc) , below is the full list of events.


// code
Xrm.Page.ui.getFormType();

Form Type Value
Undefined 0
Create 1
Update 2
Read Only 3
Disabled 4
Quick Create 5
Bulk Edit 6
Read Optimized 11

Its very usefull when you want to restrict or allow any particular event in ms crm using javascript  .


SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Form Type And Save Modes using JavaScript in mscrm 2011 , mscrm 2013 , mscrm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2796
Get Server URL or IP using JavaScript in MSCRM 2011 , MSCRM 2013 , MSCRM 2015 https://microsoftdynamics.in/2015/06/10/get-server-url-or-ip-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ Wed, 10 Jun 2015 12:55:00 +0000 http://microsoftdynamics.in/2015/06/10/get-server-url-or-ip-using-javascript-in-mscrm-2011-mscrm-2013-mscrm-2015/ Some time we need to get server IP  instead of Server URL Like when we need to write Odata Query in dev and frequently sift Solution from dev to production , it imp to get Ip dynamically so , you Odata don’t give error . // Simple Server Url using JavaScript var serverUrl = Xrm.Page.context.getServerUrl();...

The post Get Server URL or IP using JavaScript in MSCRM 2011 , MSCRM 2013 , MSCRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
Some time we need to get server IP  instead of Server URL Like when we need to write Odata Query in dev and frequently sift Solution from dev to production , it imp to get Ip dynamically so , you Odata don’t give error .
// Simple Server Url using JavaScript
var serverUrl = Xrm.Page.context.getServerUrl();
//Work fine for both IP And server

var serverUrl = document.location.protocol + “//” + document.location.host + “/” + Xrm.Page.context.getOrgUniqueName();

This Above code will work fine for both Server IP or Url as when we access mscrm record with only server name ( but our odata code contain ip it will throw an exception ) or if we access with IP ans our code contain server url so to prevent this we can use above code to get dynamic URL address.

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Server URL or IP using JavaScript in MSCRM 2011 , MSCRM 2013 , MSCRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2797
Get Difference in days between two date fields using javascript ( differences between dates ) https://microsoftdynamics.in/2015/03/12/get-difference-in-days-between-two-date-fields-using-javascript-differences-between-dates/ https://microsoftdynamics.in/2015/03/12/get-difference-in-days-between-two-date-fields-using-javascript-differences-between-dates/#comments Thu, 12 Mar 2015 08:01:00 +0000 http://microsoftdynamics.in/2015/03/12/get-difference-in-days-between-two-date-fields-using-javascript-differences-between-dates/ Hello , below you will find function calculating difference in days between two field using java script . function diffrenceindays() { var startdate = GetDateValue(startfield); var Enddate = GetDateValue(endfield); var oneday = 1000 * 60 * 60 * 24; var differenceInDays = ((Enddate - startdate) / oneday); if (differenceInDays < 0) { alert(" date cannot...

The post Get Difference in days between two date fields using javascript ( differences between dates ) appeared first on Microsoft Dynamics 365 Blog.

]]>
Hello , below you will find function calculating difference in days between two field using java script .
function diffrenceindays() {
var startdate = GetDateValue(startfield);
var Enddate = GetDateValue(endfield);

var oneday = 1000 * 60 * 60 * 24;
var differenceInDays = ((Enddate - startdate) / oneday);
if (differenceInDays < 0) {
alert(" date cannot be less then start date");

}
alert(" diffrence in days " + differenceInDays);

}

function GetDateValue(field) {


var year = field.getFullYear();
var month = field.getMonth();
var day = field.getDate();
dateOnly = new Date(year, month, day);
return dateOnly;


}

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Difference in days between two date fields using javascript ( differences between dates ) appeared first on Microsoft Dynamics 365 Blog.

]]>
https://microsoftdynamics.in/2015/03/12/get-difference-in-days-between-two-date-fields-using-javascript-differences-between-dates/feed/ 2 2798
Get Entity Name Using JavaScript in ms crm 2011 , ms crm 2013 , ms crm 2015 ( get dynamically Entity Name using Javascript) https://microsoftdynamics.in/2015/02/19/get-entity-name-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-get-dynamically-entity-name-using-javascript/ Thu, 19 Feb 2015 12:51:00 +0000 http://microsoftdynamics.in/2015/02/19/get-entity-name-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-get-dynamically-entity-name-using-javascript/ Below is the Code for Fetching Name of an Entity Using JavaScript In mscrm , Which can be used for many purposes  Like if you want to popup an new entity form ( you can create a generic function ) var entityName = Xrm.Page.data.entity.getEntityName(); // Pop Up example var id = Xrm.Page.data.entity.getId(); var entityName =...

The post Get Entity Name Using JavaScript in ms crm 2011 , ms crm 2013 , ms crm 2015 ( get dynamically Entity Name using Javascript) appeared first on Microsoft Dynamics 365 Blog.

]]>

Below is the Code for Fetching Name of an Entity Using JavaScript In mscrm , Which can be used for many purposes  Like if you want to popup an new entity form ( you can create a generic function )
 var entityName = Xrm.Page.data.entity.getEntityName();
// Pop Up example
 var id = Xrm.Page.data.entity.getId();
var entityName = Xrm.Page.data.entity.getEntityName();
Xrm.Utility.openEntityForm(entityName, id);


Hope This Helps You Thanks.

SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Entity Name Using JavaScript in ms crm 2011 , ms crm 2013 , ms crm 2015 ( get dynamically Entity Name using Javascript) appeared first on Microsoft Dynamics 365 Blog.

]]>
2802
Get Form Name of an Entity using JavaScript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 https://microsoftdynamics.in/2015/01/02/get-form-name-of-an-entity-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ https://microsoftdynamics.in/2015/01/02/get-form-name-of-an-entity-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/#comments Fri, 02 Jan 2015 10:45:00 +0000 http://microsoftdynamics.in/2015/01/02/get-form-name-of-an-entity-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ Get Form name of an entity using javascript in microsoft dynamics crm ,This help in getting saved record form name from multipal forms ( if you want to show it in reports etc). function formname() {     debugger;     var name = Xrm.Page.ui.formSelector.getCurrentItem().getLabel();     alert(name); } SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Form Name of an Entity using JavaScript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
Get Form name of an entity using javascript in microsoft dynamics crm ,This help in getting saved record form name from multipal forms ( if you want to show it in reports etc).

function formname() {
    debugger;
    var name = Xrm.Page.ui.formSelector.getCurrentItem().getLabel();

    alert(name);
}



SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get Form Name of an Entity using JavaScript in MS CRM 2011 , MS CRM 2013 , MS CRM 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
https://microsoftdynamics.in/2015/01/02/get-form-name-of-an-entity-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/feed/ 2 2807
Get the CRM Organization URL using javascript in ms crm 2011 , ms crm 2013 , ms crm 2015 https://microsoftdynamics.in/2014/12/30/get-the-crm-organization-url-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ Tue, 30 Dec 2014 09:34:00 +0000 http://microsoftdynamics.in/2014/12/30/get-the-crm-organization-url-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015/ Retrieve the CRM Organization URL with respect to the current domain name. For example, if you are browsing the CRM instance with IP, then the return value would be like this: http(s)://<IP>/<OrgName>If you are browsing with domain name, it would be like this: http(s)://<DomainName>/<OrgName>  function GetServerUrlRegExp(location) { var urlReg = new RegExp(/http[s]?://[0-9.:]+/[^/]+/); var ServerUrl = Xrm.Page.context.getServerUrl();...

The post Get the CRM Organization URL using javascript in ms crm 2011 , ms crm 2013 , ms crm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>

Retrieve the CRM Organization URL with respect to the current domain name. For example, if you are browsing the CRM instance with IP, then the return value would be like this: http(s)://<IP>/<OrgName>If you are browsing with domain name, it would be like this: http(s)://<DomainName>/<OrgName> 



function GetServerUrlRegExp(location) {
var urlReg = new RegExp(/http[s]?://[0-9.:]+/[^/]+/);
var ServerUrl = Xrm.Page.context.getServerUrl();
if (window.location.href.match(urlReg) != null) {
ServerUrl = window.location.href.match(urlReg).toString();
}
if (ServerUrl.match(//$/)) {
ServerUrl = ServerUrl.substring(0, ServerUrl.length - 1);
}
return ServerUrl;
}


SOURCE : JUST2CODE.IN

Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post Get the CRM Organization URL using javascript in ms crm 2011 , ms crm 2013 , ms crm 2015 appeared first on Microsoft Dynamics 365 Blog.

]]>
2809