Forum Stats

  • 3,734,282 Users
  • 2,246,937 Discussions
  • 7,857,218 Comments

Discussions

Download files from fusion HCM by python

I used the SOAP request by specifying the UCM ID in bodyID dDocId fields. The request reports error, unable to download file.

I am not finding documentation for a REST API download.

Bit of code info is as below.


body_ID="""<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ucm="http://www.oracle.com/UCM">
    <soapenv:Header/>
    <soapenv:Body>
    <ucm:GenericRequest webKey="cs">
        <ucm:Service IdcService="GET_FILE">
            <ucm:Document>
                <!--Zero or more repetitions:-->
                <ucm:Field name="dID">{docID}</ucm:Field>
            </ucm:Document>
        </ucm:Service>
    </ucm:GenericRequest>
    </soapenv:Body>
</soapenv:Envelope>""".format(DocID='<DOCID>')



Error

StatusMessageKey">!csUnableToDownloadFile!csServiceDataException,DOC_INFO_SUB,QdocInfo</


Answers

  • User_8CHJX
    User_8CHJX Member Posts: 3

    So dID on wsdl has been set as an integer. The UCM* value is actually the docname and the doctitle would be the filename. The dID value would have to be extracted by GET_SEARCH_RESULTS by DocName. Likewise GET_SEARCH_RESULTS for automated tag search.


    Hope this helps anyone looking to get this done by python, not seeing a lot on HCM python integration.

Sign In or Register to comment.