AnsweredAssumed Answered

How to XOG in attachments while changing the Filename

Question asked by max.grabner on Feb 29, 2016
Latest reply on Dec 8, 2016 by Yaman_Yazgan

Hi all,

 

I am wondering if it is possible to XOG-In attachments while changing their file names?

I successfully XOG-In PDF-Documents with the XML below.

My only problem is that the documents are stored  in my file source with a wrong document name (e.g. "WrongDocumentname.pdf").

In Ca PPM, I need the attachments to be stored with their real name ("RealDocumentname.pdf").

 

With the code below, I can only store the PDF-Files in Clarity with their original Filename (WrongDocumentname.pdf)

 

 

<?xml version="1.0" encoding="UTF-8"?>

<NikuDataBus xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <Header version="14.3.0.298" externalSource="NIKU" action="write" objectType="customObjectInstance">

  <args name="overrideAutoNumbering" value="true"/>

  </Header>

  <customObjectInstances objectCode="z_airport_it_contrac">

  <instance instanceCode="AIRPORIT_AUT_IMP588" objectCode="z_airport_it_contrac">

  <CustomInformation>

   <ColumnValue name="z_anlagen">RealDocumentname.pdf<Documents>

  <Parent documentLocation="..\Vertraege">

  <Document name="WrongDocumentname.pdf" language="en" mimeType="application/pdf">

  <Version id="-1" versionNumber="1"/>

  </Document>

  </Parent>

  </Documents>

</ColumnValue>

</customObjectInstances>

</NikuDataBus>

Outcomes