sarea
sarea

Reputation: 225

How to try the preview requirement set in OfficeJs

I'm developing an Outlook Web App add-in.

I'm trying to test getSharedPropertiesAsync but I'm getting

Office.context.mailbox.item.getSharedPropertiesAsync is not a function

I tested it from both read and compose mode, as it should be supported in both,

in the manifest I set the version to 1.7 in

<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
   <Requirements>
     <bt:Sets DefaultMinVersion="1.7"> // <- HERE
       <bt:Set Name="Mailbox" />
     </bt:Sets>
   </Requirements>

and

<Requirements>
  <Sets>
    <Set Name="Mailbox" MinVersion="1.7" />
  </Sets>
</Requirements>

Knowing that I added the SupportsSharedFolders in the manifest:

<DesktopFormFactor>
 <SupportsSharedFolders>true</SupportsSharedFolders>
 <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
 <FunctionFile resid="functionFile" />

And I'm testing OWA on the new experience and I joined Insider Fast in Outlook mac, but I did not find a way to join OWA.

Also, some of the other functions works fine, like getAttachmentsAsync which is also in preview! And last thing, it shows that shared properties is on prod in this video, so that's so confusing!!!!!!!

Should preview requirements set work on the latest version V1.7? if not, is there a way to get the preview requirements set on the manifest?

I HOPE I CAN GET RESPONSE FROM MSF TEAM AS THEY ARE REALLLY BAD WITH RESPONSE LIKE THIS, THIS AND THIS!!!

Upvotes: 1

Views: 324

Answers (1)

SureshGowtham S
SureshGowtham S

Reputation: 686

There is no way to check whether preview requirement is supported or not. May be you can try your luck by checking for V1.8.

Answer to your actual question:

As the documentation suggests getSharedPropertiesAsync is supported on items in a shared folder.

Gets the properties of the selected appointment or message in a shared folder, calendar, or mailbox.

Make sure you are trying the API on an item from shared folder. Calling the API on normal item throws below error.

Office.context.mailbox.item.getSharedPropertiesAsync is not a function

Upvotes: 1

Related Questions