Any examples of how to xog read all documents from the Classic > Home > Organization > Knowledge Store?
The physical filestore would need to exist on disk on an environment as the path/file is only referenced, as the actual attachments are not what is being read in and out.
The examples are provided to review the path and file properties.
A. XOG read out all path/file references
using the following example document_read.xml file
<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_rea d.xsd">
<Header version="7.5" action="read" objectType="document" externalSource="NIKU">
<args name="documentLocation" value="does_not_matter" />
</Header>
<DocumentQuery>
<!--Filter name="parentObjectID" criteria="EQUALS">1010</Filter>
<Filter name="parentObjectType" criteria="EQUALS">KS</Filter
</DocumentQuery>
</NikuDataBus>
B. XOG read out a single flle
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_document.xsd"><Header action="write" externalSource="NIKU" objectType="document" version="16.2.3.1153"/>
<Documents>
<Parent documentLocation="does_not_matter" parentObjectId="1010" parentObjectType="KS">
<Folder allowNonParticipants="0" hasAllParticipants="0" name="Folder 1">
<Folder allowNonParticipants="0" hasAllParticipants="1" name="Folder 1A">
<Document allowNonParticipants="0" fileCreatedDate="2024-12-04T00:00:00" hasAllParticipants="1" language="en" name="text6_red.txt" numCheckoutDays="1" owner="admin" status="0" versioningEnabled="1"><Version id="5327286" owner="admin" versionNumber="1"/></Document>
</Folder>
</Folder>
</Parent></Documents><XOGOutput> <Object type="Documents"/>
<Status state="SUCCESS"/> <Statistics insertedRecords="0" failureRecords="0" totalNumberOfRecords="21" updatedRecords="0"/> <Records/> </XOGOutput></NikuDataBus>
The output write XML produced from the above is used to XOG it back in.