Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
Expand all | Collapse all

Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

  • 1.  Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

    Posted Tue October 10, 2023 03:53 PM
    Hey,
     
    I'm developing a use case that will allow me to promote objects to another Cognos environment from one Cognos environment's Content store. I am capable of promoting every object. However, I can promote the file while using the Cognos SDK to promote the uploadedFile object, but the contents are not available. I used the IBM Cognos REST API to try the same thing. I tried utilizing the REST API to upload a local file using the API to the Content store, but I was unable to locate the API endpoint in the Swagger doc to download the files from the Content store. I need someone to help me with this.


    ------------------------------
    Ravi Kiran Para
    ------------------------------


  • 2.  RE: Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

    Posted Wed October 11, 2023 10:34 PM

    Hi Ravi Kran Para,
    There is no api available to retrieve uploaded files. There are two options:

    1 - create a deployment, run it and export it. A deployment is allowed to contain uploaded data.

    2 - for each table that is based on an uploaded file, create a report and write its output to a csv file, which you can retrieve via the Cognos SDK.

    There is no REST api available to create deployments.

    I hope this helps. Please let me know if you have further questions or would like to do a conference call.



    ------------------------------
    Kind regards,
    Henk Cazemier
    ------------------------------



  • 3.  RE: Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

    Posted Tue October 17, 2023 01:18 AM

    Hello, Henk Cazemier
    I appreciate your response. I am familiar with the procedure for creating a new export deployment, as you described in the first option. Can we implement it with IBM Cognos SDK? If yes, could you provide any guidelines or supporting documentation?



    ------------------------------
    Ravi Kiran Para
    ------------------------------



  • 4.  RE: Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

    Posted Tue October 17, 2023 10:10 AM

    Hello Ravi Kiran Para,

    I hope that chapter 8 in the following document has sufficient detail.
    IBM Cognos Software Development Kit Version 11.1.0 : Developer Guide



    ------------------------------
    Kind regards,
    Henk Cazemier
    ------------------------------



  • 5.  RE: Promoting uploadedFile Objects from one Cognos Environment Content Store to Another using Cognos SDK & REST API

    Posted Tue October 17, 2023 12:20 PM
    Greetings, Henk Cazemier
     
    I really appreciate your assistance with the documentation.


    ------------------------------
    Ravi Kiran Para
    ------------------------------