Dynamics 365





Showing posts with label Filter. Show all posts
Showing posts with label Filter. Show all posts

Thursday, July 23, 2020

Dynamics 365 - condition to check owner is team or user while send email

In dynamics 365 while sending emails on assigning Case or any other entity record  Required to send an email to user. here We may assign case to team initially and then to user manually . CRM may not send email to team . It can send email to user., so in work flow we need to check for the whether owner is team or user .

we can check using below condition as shown in below figure.




Thursday, March 9, 2017

Default Activity ‘Next 30 days or earlier’ to ‘All’ Dynamics CRM 2016


here is the javascript code to change the default filter of Account or Contact - Activities Filter to "All"

Default Activity ‘Filter on’ to ‘All’ Dynamics CRM 2016


Create a web resource on Account or Contact entity
Call below function on onLoad of Account or Contact entity.



function filterAllActivities() 
{
    parent.window.document.getElementById("navActivities").onclick = function () 
    {
           parent.window.Mscrm.Details.loadArea(this, "areaActivities");
           parent.window.document.getElementById("areaActivitiesFrame").onload = function () 
           {
               var entityName = Xrm.Page.data.entity.getEntityName();
              var entity = entityName.charAt(0).toUpperCase() + entityName.substr(1);
               var doc = this.contentWindow.document;
               var filterOn = doc.getElementById("crmGrid_" + entity + "_ActivityPointers_datefilter");
    
               filterOn.value = "All";
    
            var evt = document.createEvent("HTMLEvents");
            evt.initEvent("change", false, true);
            filterOn.dispatchEvent(evt); 
         };
    };