交换服务器中的GAL依赖 [英] GAL dependency in exchange server

查看:58
本文介绍了交换服务器中的GAL依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

在我们的应用程序中使用javascript 我们尝试使用以下代码从全球地址列表和分发列表中读取联系人:

In our application using javascript we are trying to read contacts from Global address list and Distribution list using the below code:

var gOutlookObj = new ActiveXObject(" Outlook.Application");

var outlookApp = gOutlookObj.Application;
$
var outlookNamespace = outlookApp.GetNamespace(" MAPI");

//试图阅读使用唯一ID引用全局地址列表

var contactsItem;

  for(var i = 1; i< outlookObj.AddressLists.count + 1; i ++)

        {

          if(outlookNamespace.AddressLists(i).ID =='00000000DCA740C8C042101AB4B908002B2FE18201000000000100002F00')

              &NBSP;&NBSP;&NBSP;&NBSP; contactsItem = outlookNamespace.AddressLists(i).Index;

        }
var contacts = outlookObj.AddressLists.item(contactsItem).AddressEntries;

var gOutlookObj = new ActiveXObject("Outlook.Application");
var outlookApp = gOutlookObj.Application;
var outlookNamespace = outlookApp.GetNamespace("MAPI");
//trying to read the reference to the Global Address List using the Unique ID
var contactsItem;
 for (var i=1;i<outlookObj.AddressLists.count+1;i++)
        {
          if (outlookNamespace.AddressLists(i).ID == '00000000DCA740C8C042101AB4B908002B2FE18201000000000100002F00')
                  contactsItem = outlookNamespace.AddressLists(i).Index;
        }
var contacts = outlookObj.AddressLists.item(contactsItem).AddressEntries;

//使用CDO读取地址列表。

 尝试{

      gObjSession = new ActiveXObject(" MAPI.Session");

      gObjSession.logon(QUOT;","",FALSE,FALSE);&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; // profileName,profilePassword,showDialog,newSession

    }

// Reading the address Lists using CDOs.
 try{
      gObjSession = new ActiveXObject("MAPI.Session");
      gObjSession.logon("","",false,false);      // profileName, profilePassword, showDialog, newSession
    }

contacts = gObjSession.AddressLists.item(contactsItem).AddressEntries;

  var filt = contacts.filter;

&NBSP; filt.name =" XXXX";

var  lv_count = contacts.count;

contacts = gObjSession.AddressLists.item(contactsItem).AddressEntries ;
 var filt = contacts.filter;
  filt.name = "XXXX";
var  lv_count = contacts.count;

在上面的示例中,是从Exchange服务器还是从Outlook客户端检索的联系人(全局地址列表)。

In the above example, Is the contacts(Global Address List) retrieved from the Exchange server or from the Outlook Client.

问候,

Kiruthika

Kiruthika

推荐答案

这取决于他们是否将GAL同步为脱机通讯簿。 如果是,您将获得Contact(AddressEntry)的缓存副本,否则它是服务器副本。
It depends on whether they are synching the GAL as an Offline Address Book.  If they are, you're getting the cached copy of the Contact (AddressEntry), otherwise it's the server copy.


这篇关于交换服务器中的GAL依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆