Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Cognos Analytics 11.1.7 Rest API

    Posted Thu November 19, 2020 07:48 PM
    Can the new REST API capability added in 11.1.7 be used for data source connections to sources such as a SharePoint list to bring this data into a data module?  Let me know if this is possible or if this is not yet part of the API capabilities.

    Thanks,
    Kay

    ------------------------------
    Kay Vandevanter
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Fri November 20, 2020 03:31 AM
    Hi Kay,

    Having a quick look at the sharepoint API documentation, I would assume this must be possible. Unfortunately, I don't have access to any sharepoint environment, so cannot test it. Currently I'm testing with other API's and the challenge so far is on how to correctly configure a file.rest configuration file. 

    Regards

    Peter

    ------------------------------
    Peter D'Haeyer
    ------------------------------



  • 3.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Fri November 20, 2020 11:26 AM
    Thanks Peter.  If we get it resolved I'll let you and others know.

    ------------------------------
    Kay Vandevanter
    ------------------------------



  • 4.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Mon November 23, 2020 09:56 AM

    Kay,

    Yes it can.  I suggest that in addition to the Knowledge Center documentation you also have a look at the blog by Jason Tavoularis.  

    Connecting to Sharepoint will require a few parameters on the JDBC connection:
    AuthenticationMethod=HttpHeader;AuthHeader=Authorization;SecurityToken="Bearer xxxxxxxxxxxxxxxx"
    (Replace xxxxxxxxxxxxx with the contents of your security token.)

    Also, if you wish to customize the manner in which the driver captures data from the API (choose your own schema, table, column names, etc.) or call multiple APIs to generate multiple tables in one schema, then use the ' Config="filename" ' method of invoking the driver.  

    Rather than start from nothing for the config file contents, in the AUTOREST schema generated by a ' Sample="apiurl" ' invocation, capture the JSON value in the Configuration table, Content column.  This is the machine generated version of the config file which maps REST API JSON into Cognos database entries. Copy that JSON into a text editor, pretty-print it, and adjust as needed per the documentation and your need for specific data elements.

    Save that file to a location visible to the Cognos system (e.g. the dropbox accessible via sftp).  You may have to determine from a system administrator the full root path name to that folder so you can specify it in the ' Config="filename" ' parameter.



    ------------------------------
    Keith E Carlsen
    AI Insights Leader
    IBM Cloud & Cognitive Software
    ------------------------------



  • 5.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Mon November 23, 2020 12:34 PM
    Thanks Keith for the details!

    ------------------------------
    Kay Vandevanter
    ------------------------------



  • 6.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Wed May 14, 2025 02:17 PM

    Kay,

    I am wondering if you were ever able to get your data source set up to connect to SharePoint?  



    ------------------------------
    Michael Neuman
    ------------------------------



  • 7.  RE: Cognos Analytics 11.1.7 Rest API

    Posted Wed May 14, 2025 03:24 PM

    Not yet.  We use M365 Sharepoint via a secure instance that blocks third party connections.  We are looking at different options but have not yet resolved.  We are now on v12.0.3.  M365 Teams integration is also an issue that we are attempting to resolve. 

    If you have suggestions integration with a M365 GCCH environment we would love to learn.

    Thanks,

    Kay



    ------------------------------
    Kay Vandevanter
    Strategic Analytics Architect
    The Boeing Company
    Seattle WA
    ------------------------------