How to validate Office Add-in manifest file for Workplace Service Delivery
Import
·
Apr 25, 2022
·
article
Download the manifest file from Servicenow Store and rename it to manifest.xml
Following customization is needed for recent manifest files downloaded from the store. They are:
- Modify the instance URL
- Open a command prompt/terminal as an administrator
- Download Node Package Manager by using the command: npm install -g npm
- Check the version of NPM by using the command: npm -v
- Install the Office Add-in Validator and its dependencies globally by using the following command: npm install -g office-addin-validator OR
- If you already have Yo Office installed, upgrade to the latest version by using the following command, and the validator will be installed as a dependency:npm update -g generator-office
- Go to your folder directory where the file is downloaded: cd [Your_file_path]
- To validate the manifest file use the following command: validate-office-addin manifest.xml
In the manifest file if the contains following URL: https://[instance_name].service-now.com/moa_icon_80.png and when we validate this file in command prompt we got following error:

So the resolution of this error is
- We need to create one image in Servicenow Instance with a height*width is 128*128 and give the name moa_icon_128.png
- Copy that image URL and paste is to tag as following: https://[instance_name].service-now.com/moa_icon_128.png
- After replacing the above URL the validation got passed with the following message:


View original source
https://www.servicenow.com/community/wsd-articles/how-to-validate-office-add-in-manifest-file-for-workplace/ta-p/2323959