Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Set queue as default in email

$
0
0

function EmailOnLoad() {
 
         var _oService;
        var _sOrgName = "";
        var _sServerUrl = Xrm.Page.context.getServerUrl();
        var sFetch = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+
  "<entity name='systemuser'>"+
    "<attribute name='fullname' />"+
    "<attribute name='title' />"+
    "<attribute name='address1_telephone1' />"+
    "<attribute name='businessunitid' />"+
    "<attribute name='siteid' />"+
    "<attribute name='systemuserid' />"+
    "<order attribute='fullname' descending='false' />"+
    "<filter type='and'>"+
      "<condition attribute='isdisabled' operator='eq' value='0' />"+
      "<condition attribute='accessmode' operator='ne' value='3' />"+
      "<condition attribute='systemuserid' operator='eq-userid' />"+
    "</filter>"+
  "</entity>"+
"</fetch>";
 
        _oService = new FetchUtil(_sOrgName, _sServerUrl);
        var res = _oService.Fetch(sFetch);
  Xrm.Page.getAttribute("description").setValue(res[0].attributes["fullname"].value);
 

       }


Viewing all articles
Browse latest Browse all 82002

Trending Articles