logo

NJP

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:

  1. Modify the instance URL
  2. Open a command prompt/terminal as an administrator
  3. Download Node Package Manager by using the command: npm install -g npm
  4. Check the version of NPM by using the command: npm -v
  5. Install the Office Add-in Validator and its dependencies globally by using the following command: npm install -g office-addin-validator OR
  6. 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
  7. Go to your folder directory where the file is downloaded: cd [Your_file_path]
  8. 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:

image

So the resolution of this error is

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

image

image

View original source

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