2

I'm developing an Excel taskpane using the new javascript api from Microsoft, and I would like to get the "Version" property from the loaded add-in from my script.

I see that the add-in displays its version when clicking on the information button, under "Security Info", but I can't find a way in the api reference to access this information from my javascript.

Does anybody know how and if it's possible to access to the security infos programmatically?

1 Answer 1

3

The version element is located in the manifest file. But OfficeJS doesn't provide any property or method for reading the manifest content. The best what you could do is to define a version variable in the code of your add-in and update it with the manifest file accordingly. Also, if you host a copy of the manifest file on any web server, you could get it like any XML file and then parse it for getting the version info.

Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.