Product Master Data Management

Get Involved. Join the Conversation.

Topic

    Vignesh Chandran
    creating item with Attachment using Item Version 2...
    Topic posted December 20, 2017 by Vignesh ChandranBlue Ribbon: 750+ Points, tagged Product Hub 
    126 Views, 4 Comments
    Title:
    creating item with Attachment using Item Version 2 webservice
    Summary:
    creating item with Attachment using webservice
    Content:

    Hi Team,

     

     

    I want to create item with attachment using create item webservice( Item version 2)

    The attachment is not a URL type. It’s a physical file.

     

    Will this work, if I am placing the file in UCM and mentioning the path in the highlighted create item request xml.

    Note : We are using ICS for the integration.

    If anybody tried please let me know.

     

    <item:ItemAttachment>

                   <!--Optional:-->

                   <item:AttachedDocumentId>?</item:AttachedDocumentId>

                   <!--Optional:-->

                   <item:DocumentId>?</item:DocumentId>

                   <!--Optional:-->

                   <item:LastUpdateDate>?</item:LastUpdateDate>

                   <!--Optional:-->

                   <item:DatatypeCode>?</item:DatatypeCode>

                   <!--Optional:-->

                   <item:DatabaseDescription>?</item:DatabaseDescription>

                   <!--Optional:-->

                   <item:FileName>?</item:FileName>

                   <!--Optional:-->

                   <item:UsageType>?</item:UsageType>

                   <!--Optional:-->

                   <item:DmNode>?</item:DmNode>

                   <!--Optional:-->

                   <item:DmFolderPath>?</item:DmFolderPath>

                   <!--Optional:-->

                   <item:DmType>?</item:DmType>

                   <!--Optional:-->

                   <item:DmDocumentId>?</item:DmDocumentId>

                   <!--Optional:-->

                   <item:DmVersionNumber>?</item:DmVersionNumber>

                   <!--Optional:-->

                   <item:DatabaseTitle>?</item:DatabaseTitle>

                   <!--Optional:-->

                   <item:Attachment>?</item:Attachment>

                   <!--Optional:-->

                   <item:EntityAttributes>?</item:EntityAttributes>

                   <!--Optional:-->

                   <item:DmRepository>?</item:DmRepository>

                   <!--Optional:-->

                   <item:DocumentAttributes>?</item:DocumentAttributes>

                   <!--Optional:-->

                   <item:DocumentEntityId>?</item:DocumentEntityId>

                   <!--Optional:-->

                   <item:CategoryName>?</item:CategoryName>

                   <!--Optional:-->

                   <item:Status>?</item:Status>

                   <!--Optional:-->

                   <item:DownloadStatus>?</item:DownloadStatus>

                   <!--Optional:-->

                   <item:CategoryId>?</item:CategoryId>

                   <!--Optional:-->

                   <item:UserName>?</item:UserName>

                   <!--Optional:-->

                   <item:Uri>?</item:Uri>

                   <!--Optional:-->

                   <item:Title>?</item:Title>

                   <!--Optional:-->

                   <item:Description>?</item:Description>

                   <!--Optional:-->

                   <item:FileContents>cid:288164748259</item:FileContents>

                   <!--Optional:-->

                   <item:DocumentURL>?</item:DocumentURL>

                   <!--Optional:-->

                   <item:URL>?</item:URL>

                   <!--Optional:-->

     

     

    And I can see one more webservice to bring the file to UCM.

     

    • ERP Object Attachment Service.

     

    Anybody tried this.

     

    Regards,

    Vignesh Chandran.

    Comment

     

    • Magesh Kesavapillai

      It is supported, though I havenot tried. A sample here:


                               <ns2:DatatypeCode>FILE</ns2:DatatypeCode>
                               <ns2:DatabaseDescription>***</ns2:DatabaseDescription>
                               <ns2:FileName>ABC.zip</ns2:FileName>
                               <ns2:UsageType>S</ns2:UsageType>
                               <ns2:DmFolderPath>Folder/Path</ns2:DmFolderPath>
                               <ns2:DatabaseTitle>Title</ns2:DatabaseTitle>
                               <ns2:DmRepository>FusionAppsContentRepository</ns2:DmRepository>
                               <ns2:DocumentAttributes></ns2:DocumentAttributes>
                               <ns2:CategoryName>Category</ns2:CategoryName>
             <ns2:DmType>Document</ns2:DmType>
                               <ns2:DownloadStatus>N</ns2:DownloadStatus>

      • Vignesh Chandran

        Thanks ! Magesh. 

        I will try this one. Do you have any idea to bring the physical file to UCM using Webservice. 

         

        I saw this webservice in instance.  

        • ERP Object Attachment Service. 

        Will this work? 

         

        Regards,

        Vignesh Chandran

      • Vignesh Chandran

        hi Magesh,

         

        I tried this, its working....some modification.

         
                    <item:ItemAttachment>
                       <item:DatatypeCode>FILE</item:DatatypeCode>
                       <item:UsageType>S</item:UsageType>
                       <item:DmType>Document</item:DmType>
                       <item:DmDocumentId>UCMFA00003256</item:DmDocumentId>
                       <item:DatabaseTitle>XXXXGenerator.zip</item:DatabaseTitle>
                       <item:Attachment>XXXXGenerator.zip</item:Attachment>
                       <item:DmRepository>FusionAppsContentRepository</item:DmRepository>
                       <item:CategoryName>MISC</item:CategoryName>
                       <item:DownloadStatus>Y</item:DownloadStatus>
         
        Thanks !
        Vignesh Chandran