ms crm Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/ms-crm/ Microsoft Dynamics CRM . Microsoft Power Platform Mon, 18 Dec 2017 10:49:00 +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 ms crm Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/ms-crm/ 32 32 176351444 StringMap table in MS CRM http://microsoftdynamics.in/2017/12/18/stringmap-table-in-ms-crm/ Mon, 18 Dec 2017 10:49:00 +0000 http://microsoftdynamics.in/2017/12/18/stringmap-table-in-ms-crm/  String Map table in dynamics crm that what is the benefit of table in reporting and how can we use this? So what is string map table actually means in CRM? String map table used in MSCRM for storing the details of Option Set Fields exists in an organization .It contains all the data (Attribute...

The post StringMap table in MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
 String Map table in dynamics crm that what is the benefit of table in reporting and how can we use this?
So what is string map table actually means in CRM?
String map table used in MSCRM for storing the details of Option Set Fields exists in an organization .It contains all the data (Attribute Name, OptionSet name, option value , option name) of option set
Below is the structure of StringMap table:
Field Data Type Description
ObjectTypeCode INT Object Type Code of the entity for which the attribute belongs.
AttributeName NVARCHAR(100) Schema name of the OptionSet attribute.
AttributeValue INT Integer value of the OptionSet option. This is the value that gets stored in the base tables.
LangId INT Language Code for the CRM deployment. Usually 1033 for English (United States)
OrganizationId UNIQUEIDENTIFIER GUID of the owning Organization.
Value NVARCHAR(255) The actual value that is displayed in the OptionSet on a form.
DisplayOrder INT Specifies the order in which the value is in the OptionSet
VersionNumber TIMESTAMP Timestamp for determining the version of the record (when it was last updated). This is used by the synchronization process.
StringMapId UNIQUEIDENTIFIER Primary Key (GUID) for the record.
Let’s take one requirement to clear the use of StringMap table, requirement is like:
 “Show the incident by status even all the status is not present in incident data or status by records contains zero value”
So in this scenario if we will have no string map table then either you need records which contain all the distinct type of record by status or you need hard code value use in report query.
By StringMap table you can join the table and can collect all the status present in incident and can collect records number by grouping of them.
So this type of many scenarios can be fulfill by this table

SOURCE : mscrm.com

The post StringMap table in MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
2767
Set only contact entity or only Account entity customer field lookup in case / Opportunity for ms crm http://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
ERROR : Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. while publishing web application http://microsoftdynamics.in/2015/11/24/error-package-publish-task-microsoft-web-publishing-tasks-createproviderlist-failed-to-load-web-deploy-assemblies-microsoft-web-deploy-is-not-correctly-installed-on-this-machine-microsoft-web-depl/ Tue, 24 Nov 2015 08:50:00 +0000 http://microsoftdynamics.in/2015/11/24/error-package-publish-task-microsoft-web-publishing-tasks-createproviderlist-failed-to-load-web-deploy-assemblies-microsoft-web-deploy-is-not-correctly-installed-on-this-machine-microsoft-web-depl/ Hi I got below error while publishing a web application . Error : Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. It resolved after downloading web platform installer and installing web deploy V3 or higher . 1....

The post ERROR : Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. while publishing web application appeared first on Microsoft Dynamics 365 Blog.

]]>
Hi I got below error while publishing a web application .

Error : Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended.

It resolved after downloading web platform installer and installing web deploy V3 or higher .

1. download Web Platform Installer .

2. After installing search  WEB DEPLOY in search Box

3. Add web deploy and click Install .
Now Publish the project , it will be done successfully . Hope it help .
Thanks

f


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

The post ERROR : Package/Publish task Microsoft.Web.Publishing.Tasks.CreateProviderList failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended. while publishing web application appeared first on Microsoft Dynamics 365 Blog.

]]>
2785
ERROR : the plugin execution failed because no sandbox hosts are currently available please check that you have a sandbox server configrated ( System.ServiceModel.EndpointNotFoundException) In MSCRM 2011 , MSCRM 2013 , MSCRM 2015 , MS CRM http://microsoftdynamics.in/2015/10/02/error-the-plugin-execution-failed-because-no-sandbox-hosts-are-currently-available-please-check-that-you-have-a-sandbox-server-configrated-system-servicemodel-endpointnotfoundexception-in-mscrm-2/ http://microsoftdynamics.in/2015/10/02/error-the-plugin-execution-failed-because-no-sandbox-hosts-are-currently-available-please-check-that-you-have-a-sandbox-server-configrated-system-servicemodel-endpointnotfoundexception-in-mscrm-2/#comments Thu, 01 Oct 2015 19:19:00 +0000 http://microsoftdynamics.in/2015/10/02/error-the-plugin-execution-failed-because-no-sandbox-hosts-are-currently-available-please-check-that-you-have-a-sandbox-server-configrated-system-servicemodel-endpointnotfoundexception-in-mscrm-2/ Hi , I got an error will executing a PLUGIN in ISOLATION mode , ERROR :   The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running. System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support:...

The post ERROR : the plugin execution failed because no sandbox hosts are currently available please check that you have a sandbox server configrated ( System.ServiceModel.EndpointNotFoundException) In MSCRM 2011 , MSCRM 2013 , MSCRM 2015 , MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
Hi , I got an error will executing a PLUGIN in ISOLATION mode ,

ERROR :   The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running. System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #357E9BEE

There are several cause for this error but most commom is : CRM Sandbox service is not running



OTHER RESOLUTION : Start / Restart the Sandbox services 


Right click ans start the services



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

The post ERROR : the plugin execution failed because no sandbox hosts are currently available please check that you have a sandbox server configrated ( System.ServiceModel.EndpointNotFoundException) In MSCRM 2011 , MSCRM 2013 , MSCRM 2015 , MS CRM appeared first on Microsoft Dynamics 365 Blog.

]]>
http://microsoftdynamics.in/2015/10/02/error-the-plugin-execution-failed-because-no-sandbox-hosts-are-currently-available-please-check-that-you-have-a-sandbox-server-configrated-system-servicemodel-endpointnotfoundexception-in-mscrm-2/feed/ 1 2788
Set Profile Image / note attachment using javascript / jquery in mscrm http://microsoftdynamics.in/2015/09/01/set-profile-image-note-attachment-using-javascript-jquery-in-mscrm/ Tue, 01 Sep 2015 12:52:00 +0000 http://microsoftdynamics.in/2015/09/01/set-profile-image-note-attachment-using-javascript-jquery-in-mscrm/ Below code convert image from upload control and convert it into base64 which can be directly set to the image field / notes etc ,  function uploadprofilepic(){      var imgvar = new Image();         imgvar.src = SourceOfFile;         imgvar.onload = function () {          ...

The post Set Profile Image / note attachment using javascript / jquery in mscrm appeared first on Microsoft Dynamics 365 Blog.

]]>
Below code convert image from upload control and convert it into base64 which can be directly set to the image field / notes etc ,

 function uploadprofilepic(){
     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,/, “”);
Now This base64Image can be set Directly to Imageprofile of an entity .
entityimage = base64Image ;
Hope this Helped Thanks for the Support .


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

The post Set Profile Image / note attachment using javascript / jquery in mscrm appeared first on Microsoft Dynamics 365 Blog.

]]>
2792
Get / Retrieve all Fields of an Entity in MSCRM using C# ( RetrieveEntityRequest ) http://microsoftdynamics.in/2015/09/01/get-retrieve-all-fields-of-an-entity-in-mscrm-using-c-retrieveentityrequest/ Tue, 01 Sep 2015 12:46:00 +0000 http://microsoftdynamics.in/2015/09/01/get-retrieve-all-fields-of-an-entity-in-mscrm-using-c-retrieveentityrequest/ Below Code Retrieve all Fields Of an Entity which can be used to perfore sevral execution Like bulk update of fields in an entity . RetrieveEntityRequest aEntity = new RetrieveEntityRequest();             aEntity.LogicalName = entityLogicanName;           //only get published fields / attributes          ...

The post Get / Retrieve all Fields of an Entity in MSCRM using C# ( RetrieveEntityRequest ) appeared first on Microsoft Dynamics 365 Blog.

]]>
Below Code Retrieve all Fields Of an Entity which can be used to perfore sevral execution Like bulk update of fields in an entity .

RetrieveEntityRequest aEntity = new RetrieveEntityRequest();
            aEntity.LogicalName = entityLogicanName;
          //only get published fields / attributes
            aEntity.RetrieveAsIfPublished = true;
            aEntity.EntityFilters = EntityFilters.All ;
            RetrieveEntityResponse resp = (RetrieveEntityResponse)service.Execute(aEntity);
            EntityMetadata getmetadata = resp.EntityMetadata;
            var crmAttributes = getmetadata.Attributes;
            attributes.Items.Clear();
            foreach (var attr in crmAttributes)
            {
                // filter can be used to get only Custom fields / or System fields with change
                if (attr.IsSecured == false && (attr.CanBeSecuredForUpdate == true || attr.CanBeSecuredForRead == true || attr.CanBeSecuredForCreate == true))
                    attributes.Items.Add(attr.LogicalName);
            }

Hope This Helped You Thanks For the Support , If Any query or suggestion , please comment below

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

The post Get / Retrieve all Fields of an Entity in MSCRM using C# ( RetrieveEntityRequest ) appeared first on Microsoft Dynamics 365 Blog.

]]>
2793
Get Difference in days between two date fields using javascript ( differences between dates ) http://microsoftdynamics.in/2015/03/12/get-difference-in-days-between-two-date-fields-using-javascript-differences-between-dates/ http://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.

]]>
http://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) 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/ 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
microsoft dynamic crm certification Exam Name and links, Type of Certification By Microsoft For Microsoft Dynamics Crm 2011 , 2013 , 2015 ( Certificate Name and Code ) http://microsoftdynamics.in/2015/02/19/microsoft-dynamic-crm-certification-exam-name-and-links-type-of-certification-by-microsoft-for-microsoft-dynamics-crm-2011-2013-2015-certificate-name-and-code/ Thu, 19 Feb 2015 12:06:00 +0000 http://microsoftdynamics.in/2015/02/19/microsoft-dynamic-crm-certification-exam-name-and-links-type-of-certification-by-microsoft-for-microsoft-dynamics-crm-2011-2013-2015-certificate-name-and-code/ Hey all , Below are Name of Certification available for Microsoft Dynamics CRM . You Can Find more certification by microsoft Like ; Dynamics AX , Sharepoint , .Net , Nav  e.t.c MB2-700: Microsoft Dynamics CRM 2013 ApplicationsMB2-701: Extending Microsoft Dynamics CRM 2013MB2-702: Microsoft Dynamics CRM 2013 DeploymentMB2-703: Microsoft Dynamics CRM 2013 Customization and ConfigurationMB2-704:...

The post microsoft dynamic crm certification Exam Name and links, Type of Certification By Microsoft For Microsoft Dynamics Crm 2011 , 2013 , 2015 ( Certificate Name and Code ) appeared first on Microsoft Dynamics 365 Blog.

]]>

Hey all , Below are Name of Certification available for Microsoft Dynamics CRM . You Can Find more certification by microsoft Like ; Dynamics AX , Sharepoint , .Net , Nav  e.t.c

Click here for official Link to all Microsoft  Certification : Microsoft Offical Link SOURCE : JUST2CODE.IN Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post microsoft dynamic crm certification Exam Name and links, Type of Certification By Microsoft For Microsoft Dynamics Crm 2011 , 2013 , 2015 ( Certificate Name and Code ) appeared first on Microsoft Dynamics 365 Blog.

]]>
2804
Get all types of all input tags from a section using javascript in ms crm 2011, ms crm 2013 , ms crm 2015 ( no of checkbox checked in an section) http://microsoftdynamics.in/2014/12/19/get-all-types-of-all-input-tags-from-a-section-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-no-of-checkbox-checked-in-an-section/ Fri, 19 Dec 2014 11:17:00 +0000 http://microsoftdynamics.in/2014/12/19/get-all-types-of-all-input-tags-from-a-section-using-javascript-in-ms-crm-2011-ms-crm-2013-ms-crm-2015-no-of-checkbox-checked-in-an-section/ This is an Example for checking no of checkbox checked in an section not using jquery ( as jquery will not work in mobile version of ms crm) function checkboxcheck() {        var innerhtmls = Xrm.Page.ui.tabs.get(“tabname” ).sections.get( “Sectionname”).$1l_0.innerHTML;         // defaultvalue=”1″ = checked and defaultvalue=”0″ unchecked       var checkedis = innerhtmls.match( /defaultvalue=”1″/g );     // if non of checkbox  is checked...

The post Get all types of all input tags from a section using javascript in ms crm 2011, ms crm 2013 , ms crm 2015 ( no of checkbox checked in an section) appeared first on Microsoft Dynamics 365 Blog.

]]>
This is an Example for checking no of checkbox checked in an section not using jquery ( as jquery will not work in mobile version of ms crm)

function checkboxcheck() {   

    var innerhtmls = Xrm.Page.ui.tabs.get(“tabname” ).sections.get( “Sectionname”).$1l_0.innerHTML;
        // defaultvalue=”1″ = checked and defaultvalue=”0″ unchecked 
     var checkedis = innerhtmls.match( /defaultvalue=”1″/g );

    // if non of checkbox  is checked give alert
    if (checkedis == null) {
        alert( “Alert msg” );
    }
}




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



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

The post Get all types of all input tags from a section using javascript in ms crm 2011, ms crm 2013 , ms crm 2015 ( no of checkbox checked in an section) appeared first on Microsoft Dynamics 365 Blog.

]]>
2820