Thanks everyone. I managed to export the attachement to a folder on the server using the Document_read.xml. Now I need to xog the attachment back in. This time to a differente cost plan. How can I do this? Should I use the costplan_write.xml or a document write_xml?
I'll leave the xog file used to export the attachment here for future reference:
<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
<Header version="7.5" action="read" objectType="document" externalSource="NIKU">
<args name="documentLocation" value="D:\temp" />
</Header>
<DocumentQuery>
<Filter name="folderName" criteria="EQUALS">ctp_att_folhaestimat::ODF::Attribute</Filter>
<Filter name="folderPath" criteria="EQUALS">/Root/DMS/ODF/costplan/5561001</Filter>
</DocumentQuery>
</NikuDataBus>
Thank you for all your help,
Gonçalo