第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

無(wú)法在發(fā)送加載項(xiàng)清單時(shí)在 Outlook 中添加 AppDomain

無(wú)法在發(fā)送加載項(xiàng)清單時(shí)在 Outlook 中添加 AppDomain

阿晨1998 2022-07-15 09:27:15
我對(duì)開(kāi)發(fā) Outlook 加載項(xiàng)相對(duì)較新,并且在開(kāi)發(fā) On-send 加載項(xiàng)時(shí)遇到了問(wèn)題。我正在嘗試從我的 on-send 加載項(xiàng)內(nèi)部進(jìn)行 ajax 調(diào)用,如下所示:$.ajax({    url: "https://XXXXXXX.dev:9999/createMeeting",    data: JSON.stringify(result),    contentType: 'application/json',    type: 'POST',    dataType: 'json',    error: function(xhr, status, error) {        console.log("ERRROR", error)    }}).done(function(data) {    console.log("DONE ", data)});我的清單如下所示:<?xml version="1.0" encoding="utf-8"?><OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"     xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="MailApp">    <AppDomains>        <AppDomain>DOMAIN1</AppDomain>        <AppDomain>DOMAIN2</AppDomain>    </AppDomains>    <Id>XXXXXXXX-1a52-42a0-96bf-100d801a4ef7</Id>    <Version>1.0</Version>    <ProviderName>Contoso</ProviderName>    <DefaultLocale>en-us</DefaultLocale>    <DisplayName DefaultValue="Contoso Subject and CC Checker" />    <Description DefaultValue="Contoso Subject and CC Checker" />    <Requirements>        <Sets DefaultMinVersion="1.1">            <Set Name="Mailbox" />        </Sets>    </Requirements>    <FormSettings>        <Form xsi:type="ItemEdit">            <DesktopSettings>                <SourceLocation DefaultValue="https://XXXXXXXX.dev:3001/index.html" />            </DesktopSettings>        </Form>    </FormSettings>    <Permissions>ReadWriteMailbox</Permissions>    <Rule xsi:type="RuleCollection" Mode="Or">        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />    </Rule>根據(jù)文檔,AppDomains元素必須是OfficeApp元素的子元素。難道我做錯(cuò)了什么??提前致謝!編輯:這發(fā)生在 Outlook OWA (web) 和 Windows 應(yīng)用程序上。尚未在其他平臺(tái)上驗(yàn)證。
查看完整描述

2 回答

?
守著一只汪

TA貢獻(xiàn)1872條經(jīng)驗(yàn) 獲得超4個(gè)贊

似乎問(wèn)題是由于您在清單中添加元素的順序引起的。由于清單文件遵循模式 xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" 它需要此處提到的特定順序的元素。如果您遵循示例清單中提到的元素順序,它應(yīng)該可以正常工作。

再次更新了鏈接。


查看完整回答
反對(duì) 回復(fù) 2022-07-15
?
翻過(guò)高山走不出你

TA貢獻(xiàn)1875條經(jīng)驗(yàn) 獲得超3個(gè)贊

發(fā)布一個(gè)例子,以防其他人有同樣的問(wèn)題。


感謝 Outlook 插件團(tuán)隊(duì) - MSFT!


<?xml version="1.0" encoding="utf-8"?>


<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" 

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 

    xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="MailApp">


    <Id>XXXXXX-1a52-XXXXXX-96bf-XXXXXX</Id>

    <Version>1.0</Version>

    <ProviderName>Contoso</ProviderName>

    <DefaultLocale>en-us</DefaultLocale>

    <DisplayName DefaultValue="Contoso Subject and CC Checker" />

    <Description DefaultValue="Contoso Subject and CC Checker" />


    <AppDomains>

        <AppDomain>https://www.XXXXXX.dev</AppDomain>

        <AppDomain>https://XXXXXX.dev</AppDomain>

    </AppDomains>


    <Requirements>

        <Sets DefaultMinVersion="1.1">

            <Set Name="Mailbox" />

        </Sets>

    </Requirements>



    <FormSettings>

        <Form xsi:type="ItemEdit">

            <DesktopSettings>

                <SourceLocation DefaultValue="https://XXXXXX.dev:3001/index.html" />

            </DesktopSettings>

        </Form>

    </FormSettings>


    <Permissions>ReadWriteMailbox</Permissions>


    <Rule xsi:type="RuleCollection" Mode="Or">

        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />

        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />

    </Rule>


    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">

        <!-- On Send requires VersionOverridesV1_1 -->

        <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">

            <Description resid="residAppDescription" />

            <Requirements>

                <bt:Sets DefaultMinVersion="1.3">

                    <bt:Set Name="Mailbox" />

                </bt:Sets>

            </Requirements>



            <Hosts>

                <Host xsi:type="MailHost">

                    <DesktopFormFactor>

                        <!-- The functionfile and function name to call on message send.  -->

                        <!-- In this particular case the function validateSubjectAndCC will be called within the JavaScript code referenced in residUILessFunctionFileUrl. -->

                        <FunctionFile resid="residUILessFunctionFileUrl" />

                        <ExtensionPoint xsi:type="Events">

                            <Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateSubjectAndCC" />

                        </ExtensionPoint>

                    </DesktopFormFactor>

                </Host>

            </Hosts>

            <Resources>

                <bt:Urls>

                    <!-- The JavaScript code is hosted on a secure and trusted web server. -->

                    <bt:Url id="residUILessFunctionFileUrl" DefaultValue="https://XXXXXX:3001/index.html"></bt:Url>

                </bt:Urls>

            </Resources>

        </VersionOverrides>

    </VersionOverrides>


</OfficeApp>


查看完整回答
反對(duì) 回復(fù) 2022-07-15
  • 2 回答
  • 0 關(guān)注
  • 168 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)