<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a SharePoint Qlik connector via Qlik API in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Create-a-SharePoint-Qlik-connector-via-Qlik-API/m-p/2117612#M2468</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;We have automated a process that we repeat at the start of every project in our company. The automation starts with an input form and, with that info, it sets up a space, create/set standard apps/scripts used in every project, creates a sharepoint site... until there all good.&lt;/P&gt;
&lt;P&gt;Now, we would like to automate the creation of the SharePoint connector that the apps will use to connect to the new sharepoint site created in a previous step. I plan to do that using a Call URL block.&lt;/P&gt;
&lt;P&gt;I have reviewed this post to prepare the request in Postman:&amp;nbsp;&lt;A href="https://qlik.dev/manage/data-connections/auth-data-connections" target="_blank" rel="noopener"&gt;https://qlik.dev/manage/data-connections/auth-data-connections. After &lt;/A&gt;a number of attempts, I see no success.&lt;/P&gt;
&lt;P&gt;My session already has a SharePoint&amp;nbsp; Access Token that I have requested to MS-Graph in order to create the sharepoint site, so I suppose I can use that one -given that I set up the right scope in graph, as I believe I did-, to identify Qlik against SharePoint during the creation of the new connector.&lt;/P&gt;
&lt;P&gt;The headers in my POST request must be OK because I use them in other qlik endpoints and it works.&lt;/P&gt;
&lt;P&gt;The endpoint I am using is the one in the documentation: &lt;A href="https://{myTennant}.qlikcloud.com/api/v1/dcaas/actions/data-connections" target="_blank" rel="noopener"&gt;https://{myTennant}.qlikcloud.com/api/v1/dcaas/actions/data-connections&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm trying now different variations of something like this in the body of my POST request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "datasourceID": "rest",
    "connectionName": "Office 365 Sharepoint",
    "space": {spaceIdOfSomeSpaceInMyTennant},
    "connectionProperties": {
        "OAuthMechanism": "1",
        "Catalog": {SomeNameForTHeConection},
        "authCode": {someSuperLongTokenProvidedByMSGraph}
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the response I get in postman:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "status": 403,
    "errors": [
        {
            "code": "DCAAS-2001",
            "title": "Data source is not enabled",
            "meta": {
                "description": "datasource 'undefined' not found or is not enabled"
            }
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Orientation will be really appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Gines&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:22:54 GMT</pubDate>
    <dc:creator>Solvica</dc:creator>
    <dc:date>2024-11-15T21:22:54Z</dc:date>
    <item>
      <title>Create a SharePoint Qlik connector via Qlik API</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Create-a-SharePoint-Qlik-connector-via-Qlik-API/m-p/2117612#M2468</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;We have automated a process that we repeat at the start of every project in our company. The automation starts with an input form and, with that info, it sets up a space, create/set standard apps/scripts used in every project, creates a sharepoint site... until there all good.&lt;/P&gt;
&lt;P&gt;Now, we would like to automate the creation of the SharePoint connector that the apps will use to connect to the new sharepoint site created in a previous step. I plan to do that using a Call URL block.&lt;/P&gt;
&lt;P&gt;I have reviewed this post to prepare the request in Postman:&amp;nbsp;&lt;A href="https://qlik.dev/manage/data-connections/auth-data-connections" target="_blank" rel="noopener"&gt;https://qlik.dev/manage/data-connections/auth-data-connections. After &lt;/A&gt;a number of attempts, I see no success.&lt;/P&gt;
&lt;P&gt;My session already has a SharePoint&amp;nbsp; Access Token that I have requested to MS-Graph in order to create the sharepoint site, so I suppose I can use that one -given that I set up the right scope in graph, as I believe I did-, to identify Qlik against SharePoint during the creation of the new connector.&lt;/P&gt;
&lt;P&gt;The headers in my POST request must be OK because I use them in other qlik endpoints and it works.&lt;/P&gt;
&lt;P&gt;The endpoint I am using is the one in the documentation: &lt;A href="https://{myTennant}.qlikcloud.com/api/v1/dcaas/actions/data-connections" target="_blank" rel="noopener"&gt;https://{myTennant}.qlikcloud.com/api/v1/dcaas/actions/data-connections&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I'm trying now different variations of something like this in the body of my POST request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "datasourceID": "rest",
    "connectionName": "Office 365 Sharepoint",
    "space": {spaceIdOfSomeSpaceInMyTennant},
    "connectionProperties": {
        "OAuthMechanism": "1",
        "Catalog": {SomeNameForTHeConection},
        "authCode": {someSuperLongTokenProvidedByMSGraph}
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the response I get in postman:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "status": 403,
    "errors": [
        {
            "code": "DCAAS-2001",
            "title": "Data source is not enabled",
            "meta": {
                "description": "datasource 'undefined' not found or is not enabled"
            }
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Orientation will be really appreciated.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Gines&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Create-a-SharePoint-Qlik-connector-via-Qlik-API/m-p/2117612#M2468</guid>
      <dc:creator>Solvica</dc:creator>
      <dc:date>2024-11-15T21:22:54Z</dc:date>
    </item>
  </channel>
</rss>

