Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Outlook 位置值在Office365帐户上行为不正常_Outlook_Outlook Web Addins - Fatal编程技术网

Outlook 位置值在Office365帐户上行为不正常

Outlook 位置值在Office365帐户上行为不正常,outlook,outlook-web-addins,Outlook,Outlook Web Addins,我在OWA中设置Office 365 Business Premium帐户约会的位置值时遇到问题 获取位置的代码: function getLocation() { const $dLoc = $.Deferred(); try { Office.context.mailbox.item.location.getAsync(function (asyncResult) { if (asyncResult.status === Office.As

我在OWA中设置Office 365 Business Premium帐户约会的位置值时遇到问题

获取位置的代码:

  function getLocation() {
    const $dLoc = $.Deferred();
    try {
        Office.context.mailbox.item.location.getAsync(function (asyncResult) {
        if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
          $dLoc.resolve(asyncResult.value);
        }
        else {
          $dLoc.reject(translate.getTranslation('ERROR_GETTING_LOCATION'));
        }
      });
    }
    catch (e) {
      $dLoc.reject(e);
    }
    return $dLoc.promise();
  }
  function applyLocation() {
    const $dLoc = $.Deferred();
    try {
      Office.context.mailbox.item.location.setAsync(_appointmentInfo.loc, function (asyncResult) {
        if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
          $dLoc.resolve();
        }
        else {
          $dLoc.reject(translate.getTranslation('ERROR_SETTING_LOCATION'));
        }
      });
    }
    catch (e) {
      $dLoc.reject(e);
    }
    return $dLoc.promise();
  }
设置位置的代码:

  function getLocation() {
    const $dLoc = $.Deferred();
    try {
        Office.context.mailbox.item.location.getAsync(function (asyncResult) {
        if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
          $dLoc.resolve(asyncResult.value);
        }
        else {
          $dLoc.reject(translate.getTranslation('ERROR_GETTING_LOCATION'));
        }
      });
    }
    catch (e) {
      $dLoc.reject(e);
    }
    return $dLoc.promise();
  }
  function applyLocation() {
    const $dLoc = $.Deferred();
    try {
      Office.context.mailbox.item.location.setAsync(_appointmentInfo.loc, function (asyncResult) {
        if (asyncResult.status === Office.AsyncResultStatus.Succeeded) {
          $dLoc.resolve();
        }
        else {
          $dLoc.reject(translate.getTranslation('ERROR_SETTING_LOCATION'));
        }
      });
    }
    catch (e) {
      $dLoc.reject(e);
    }
    return $dLoc.promise();
  }
这在本机Outlook客户端(MAC和WIN)和OWA中的exchange 2016内部部署服务器上运行良好

在Office 365 Business Premium帐户中,它在Outlook本机客户端中也可以正常工作,但在OWA(.)中,我可以通过编程方式获取/设置位置,但在会议/约会保存/发送时不会保留我设置的任何值

我注意到的一个区别是,在Exchange 2016内部部署中,位置在OWA的位置字段中是纯文本,而在Office365 OWA中,位置应用了一些html,并且有一个X按钮,如下图所示:


您知道为什么会发生这种情况,为什么它适用于exchange而不适用于Office365 OWA吗?

我们已经修复了该错误,并且该修复程序应在内部版本或更高版本中提供。根据发布渠道的不同,获得更新版本可能需要4-8周的时间。

感谢您的反馈。对于由此造成的不便,我们深表歉意,目前正在努力尽快解决此问题。好消息,谢谢。当这个问题解决后,我能追踪到哪里?