- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 12:13 PM
Hello,
I'm wondering if anyone has tackled getting Managed Documents to play nice with the new KB features (specifically article versioning) introduced. There is a script include when activating the knowledge document plugin that handles the logic of linking your managed documents. It's great, when creating a new article from the Document side, once the record is inserted the normal versioning process will follow. However if choosing to update an existing article, the updates are applied to version 1.0 only. You then (as a knowledge_manager or knowledge_admin) have to go to that specific version and make it current. The script hasn't been updated by ServiceNow since 2011 when the module came out, so there's no logic behind any of this new stuff. My question is - where would I start to be able to use the new versioning features? I have been looking and am stumped.
This is the existing logic:
var m2mKnowledgeRevisionGR = new GlideRecord("m2m_document_knowledge");
m2mKnowledgeRevisionGR.addQuery("sys_id", m2mRevisionKnowledge.sys_id);
m2mKnowledgeRevisionGR.query();
if (m2mKnowledgeRevisionGR.next()) {
m2mKnowledgeRevisionGR.revision = revision.sys_id;
m2mKnowledgeRevisionGR.document = revision.document;
m2mKnowledgeRevisionGR.attachment = attachmentId;
m2mKnowledgeRevisionGR.update();
}
return true;
}
return false;
},
Thanks for making it this far!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 07:19 PM
Hi Trevor,
We addressed this in New York.
If you are using Managed Documents with article versioning, if you update the document it will get linked to the latest article version. Hope this helps!
Regards,
Lokenath Chakraborty, PM, Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 07:19 PM
Hi Trevor,
We addressed this in New York.
If you are using Managed Documents with article versioning, if you update the document it will get linked to the latest article version. Hope this helps!
Regards,
Lokenath Chakraborty, PM, Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2019 05:41 AM
Brilliant. Thanks so much! Glad to see this has been updated in New York.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2021 03:00 AM
Hi Lokenath,
I'm interested in the feature you linked but meanwhile I'm redirected to a general page: https://docs.servicenow.com/bundle/rome-servicenow-platform/page/administer/general/reference/r_ServiceNowPlatform.html
Shouldn't I get redirected to the same feature in the Rome release?
Kind regards
JOachim