1
votes

I load office add-in js file from CDN with this link: https://appsforoffice.microsoft.com/lib/1/hosted/office.js

As document said this is the latest version of the office api. In my add-in, I only use Office.context.document.setSelectedDataAsync which is belong to Selection Requirements Set to replace value from my Word

I configure the manifest file with this code

<Requirements>
   <Sets DefaultMinVersion="1.1">
      <Set Name="Selection" MinVersion="1.1"/>
   </Sets>
   <Methods>
      <Method Name="Document.setSelectedDataAsync"/>
   </Methods>
</Requirements>

When I publish the manifest file in Office 365, the add-in does not appear in the Admin Managed Tab (I'm testing in Word online and Word 2016) enter image description here

I've tried to remove Methods Tag but the add-in still not show up. When I remove the Requirements tag, the add-in shows up again.

What I've done wrong here? Does I use wrong version of Office Api or the config in manifest is wrong?

2

2 Answers

1
votes

The extraction process needs to tag it for Office Online for Word and it doesn't appear to be happening properly. I will need to follow up on this

0
votes

If you're not trying to restrict where your add-in shows up, then consider not using the requirement set definition in the manifest.

Have you tried using the "Upload My Add-in" link (top right in the dialog shown) to upload your manifest and verify that it works? If that works, then perhaps there's an issue in how the manifest was published to Office 365?

Thanks!