If this post helps, please consider accepting it as a solution to help other members find it more quickly.
ZNAPZ B.V.
Original Message:
Sent: Mon June 30, 2025 05:21 AM
From: Ratheesh Pullaikodi
Subject: Integrating attachment from MAS to external system
Hi Andrzej
It is the latter. Integrate actual attachment content.
I have tried with the non-persistent DOCLINKS.DOCUMENTDATA but it always comes blank.
------------------------------
Ratheesh Pullaikodi
Original Message:
Sent: Mon June 30, 2025 02:43 AM
From: Andrzej Więcław
Subject: Integrating attachment from MAS to external system
Hi Ratheesh,
could you please elaborate what do you exactly mean by saying "There is a requirement to interface PR attachments from MAS Manage 9 to external system."?
Does it mean that you're integrating attachment references (URLs pointing back to Manage) or the actual attachment content?
If it's the latter then you may use built-in feature of adding and activating in your object structure non-persistent DOCLINKS.DOCUMENTDATA
attribute (ref. screenshot below). This way you may easily expose all PR attachments as Base64 strings. Of course this may dramatically increase the size of the outbound integration message which you should account for in your integration pipeline design.

------------------------------
If this post helps, please consider accepting it as a solution to help other members find it more quickly.
Andrzej Więcław
Maximo Technical SME
ZNAPZ B.V.
Wrocław, Poland
Original Message:
Sent: Sun June 29, 2025 11:55 AM
From: Ratheesh Pullaikodi
Subject: Integrating attachment from MAS to external system
There is a requirement to interface PR attachments from MAS Manage 9 to external system.
I have used the below method in publish channel user exit script to retrieve the content.
attachments=Base64.getEncoder().encodeToString(XMLUtils.readXMLFileToBytes(mbo.getString("DOCINFO.URLNAME"))))
But it throws exception
java.lang.NullPointerException: null
at java.util.Base64$Encoder.encode(Base64.java:267) ~[?:?]
at java.util.Base64$Encoder.encodeToString(Base64.java:321) ~[?:?]
This code was well working with Maximo 7.6 .
Please find the user exit script attached.
DOCINFO.URLNAME is store as cos:doclinks/myfile.pdf
Has anyone come across this issue?
Kindly provide your input
Thanks
Ratheesh
------------------------------
Ratheesh Pullaikodi
------------------------------