Maximo Open Forum

 View Only

 Sending a document to an external system

Jump to  Best Answer
  • Administration
  • Integrations
Sergey Melnikov's profile image
Sergey Melnikov posted 11-26-2025 04:44

Good day, experts.
I need some advice.
I need to send a document as an attachment to a purchase order in an external system.
Is it possible to add a base64-encrypted document from doclinks to an XML file?

Steven Shull's profile image
Steven Shull  Best Answer

Yes, you want the documentdata non-persistent attribute of DOCLINKS. If you include this non-persistent attribute in your object structure (using the Exclude/Include fields dialog in the Object Structures application) it should be able to write it to the XML file. Just be aware that the size of your XML file will grow significantly. I have seen records with 100 MB+ of attachments. That can then lead to issues with the other system being able to process the file. 

Sergey Melnikov's profile image
Sergey Melnikov

I added doklinks to the object structure, generated XML, then went to the publishing channel and generated XML. The field appeared there, but it wasn't in the XML message.
What else should I do?

Sergey Melnikov's profile image
Sergey Melnikov

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Sync xmlns:ns0="http://www.gsrenergy.ru" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
<ns0:PRequest> 
<ns0:PRNum>MXPR98</ns0:PRNum> 
<ns0:PRNum1C /> 
<ns0:X1CCFO>F00000127</ns0:X1CCFO> 
<ns0:Description>test export file</ns0:Description> 
<ns0:FullDesc /> 
<ns0:IssueDate>20251127</ns0:IssueDate> 
<ns0:RequiredDate>20251226</ns0:RequiredDate> 
<ns0:Status>Under Agreement</ns0:Status> 
<ns0:RequestedBy>MELN</ns0:RequestedBy> 
<ns0:Supervisor>MELN</ns0:Supervisor> 
<ns0:X1CTel>323</ns0:X1CTel> 
<ns0:X1CWORef /> 
<ns0:X1CPMRef /> 
<ns0:PRPrior>2</ns0:PRPrior> 
<ns0:PRClass1C>PR</ns0:PRClass1C> 
<ns0:Vendor1C>3241234</ns0:Vendor1C> 
<ns0:XType1C>Planned</ns0:XType1C> 
<ns0:XCFOAdm>0</ns0:XCFOAdm> 
<ns0:Lines> 
<ns0:Line> 
<ns0:PRLineNum>1</ns0:PRLineNum> 
<ns0:PRLineNum1C /> 
<ns0:ItemNum>F0013639</ns0:ItemNum> 
<ns0:OrderQTY>1.000</ns0:OrderQTY> 
<ns0:UnitCost>75654.00</ns0:UnitCost> 
<ns0:VenDeliveryDate /> 
<ns0:LineType>ITEM</ns0:LineType> 
<ns0:Remark /> 
<ns0:Tax1Code>20%</ns0:Tax1Code> 
</ns0:Line> 
</ns0:Lines> 
</ns0:PRequest>
</ns0:Sync>