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
02-25-2020 03:05 PM
You will most likely need the Plugin Google Custom Search Integration.
Once you have that installed you should be able to do things like make a site map and make a robots file.
Please mark correct ✅ if this solves your issue and helpful 👍 if it has assisted you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2020 03:21 PM
We have the plugin but this doesn't solve the issue of needing to be able to store the sitemap at the root. Has anyone been able to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2020 07:16 PM
Please try Justins response from this thread:
https://community.servicenow.com/community?id=community_blog&sys_id=efed222ddbd0dbc01dcaf3231f9619f8
"We did this using a scoped app which generates a sitemap from our KB artciles table. We then had to put the URL to the scoped app API in robots.txt file using the Google plugin. It was pretty straight forward, we used a scripted REST API set the return to XML (had to set in the script) and put together an XML from a glide record query."
I imagine broadly the steps would be:
1. install plugin
2. modify robots.txt file to point to a sites.xml page, or scripted rest api as above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 12:57 PM
We've done that but still get the error message that sitemap is not xml format because we can't put it at the root. I would think others would be getting this same error from google.