How to save a sitemap.xml in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2020 01:17 PM
Does anyone know how to properly build and save a sitemap in ServiceNow. We have a URL that redirects to an API call but Google Search Console returns the url with an error that sitemap is HTML. Not sure how to correct this-anyone have any experience?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2020 08:32 PM
I believe when submitting a sitemap to google, you can define the path to the sitemap, I don't believe it necessarily has to exist at the root.
On a personal website I have, my sitemap isnt even in on a raw XML page, its on a PHP page that just renders XML content.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2020 03:25 AM
Commenting this here as well as on the other post (https://community.servicenow.com/community?id=community_question&sys_id=bab9c0fddbff370c0be6a345ca9619d4) just in case you need it:
Not sure if you still need this but I think I had exactly the same issue and may have figured it out... Using https://community.servicenow.com/community?id=community_article&sys_id=4d17960adb961cd0fa192183ca9619bd i kept on getting the error in googles search console of it being html not xml, I assume this was because the sitemap created by those instructions was not in the sp actually but would redirect from the sp to the instance (introducing the html) and display a sitemap which google didnt like.
So instead of giving the processor a path use a parameter instead. e.g. i used the parameter "SIZE" for testing in my sub production instance, you can now add the paramter to any url and it will render the sitemap, even in the service portal: e.g: https://XXXX.service-now.com/sp/?SIZE
This can then be added to google search console as a sitemap:
Too early to tell if it works as i cannot see the index coverage yet but i thought I would share before I forget about this post...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-09-2022 08:48 AM
So where or how are you adding that "SIZE" property?
I see your attached picture, but I don't know what that is.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 02:09 AM
Hi Sal
Apologies, you need to check the link in my post (Create a Dynamic Sitemap in ServiceNow - Developer Community - Article - ServiceNow Community) for instructions on what to do, but note that I when creating the processor, I had to use a parameter instead of a path to get it to work as per my above post.
Also please note that this was done a while ago and you can no longer create custom processors without a workaround that requires updating the create ACL on the sys_processor table to allow your admin role to create new processors. So this solution is probably no longer recommended, but it should still work.