Clarity

 View Only
  • 1.  Is it possible to send an attachment field via Web Services

    Posted Dec 10, 2017 09:48 AM

    Hello,

     

    I want to export / import some files for an integration.

     

    Is it possible to make it via web services or the XOG client mandatory?

     

    Regards

    Cagil



  • 2.  Re: Is it possible to send an attachment field via Web Services
    Best Answer

    Broadcom Employee
    Posted Dec 10, 2017 10:58 PM

    Hi,

     

    It maybe possible but document folder and internal name(number name) structures are very complicated. 

     

    You can xogout attachment attribute like as following sample xogout xml and found that document will be placed under folder which you described by "documentLocation".   You will find "Files" folder and sub-folders. 

    In my case, sugsh02_object01 object has 1 attachment attribute. I performed xogout instance and got the document  in c:/work/Files/019/005/5019051   

     

    ------ explanation about folder structure ------

    …\Files\nnn\mmm\<version_id>
    nnn : 4-6 digits of version id
    mmm: 7-9 digits of version id

    ex) for case of version id=5019051. Usually version id =5xxxyyy (7digits)
    File path …\Files\019\005\5019051
    File name 5019051
    nnn = 019
    mmm is 5. 0 padding and mmm is 005

    ------------------------------------------------------------

     

    ----- sample xogout xml ---------------------------------

    <?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="8.0" action="read" objectType="customObjectInstance" externalSource="NIKU">
    <args name="documentLocation" value="c:/work" />
    </Header>
    <CustomObjectInstanceQuery>
    <Filter name="objectCode" criteria="EQUALS">sugsh02_object01</Filter>
    <Filter name="instanceCode" criteria="EQUALS">3</Filter>
    </CustomObjectInstanceQuery>
    </NikuDataBus>

     

    Regards,
    Shoichi



  • 3.  Re: Is it possible to send an attachment field via Web Services

    Posted Dec 18, 2017 06:42 AM

    Hello Shoichi,

     

    Thank you for your help

     

    The problem the file that stored in  c:/work/Files/019/005/5019051  is in the application server not the client. 

     

    I could not find any solution to copy it to the client , or upload from the client as well.

     

    Regards

    Cagil



  • 4.  Re: Is it possible to send an attachment field via Web Services

    Broadcom Employee
    Posted Dec 18, 2017 07:33 PM

    Hi Cagil,

     

    Yes, files are stored in application server not the client.

    If your environment is CA PPM SaaS, you can use SFTP service and use SFTP directory as "documentLocation" in xog.

     

    Regards,

    Shoichi