<?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 Re: Get Datasource from Group - help parsing the JSON in PowerShell in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Get-Datasource-from-Group-help-parsing-the-JSON-in-PowerShell/m-p/1448214#M26219</link>
    <description>&lt;P&gt;How is this related to Power BI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, have you tried to do this in Power Query?&amp;nbsp; It guides you through the JSON structure and allows you to pick the fields you need .&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 02:00:09 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-10-22T02:00:09Z</dc:date>
    <item>
      <title>Get Datasource from Group - help parsing the JSON in PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Datasource-from-Group-help-parsing-the-JSON-in-PowerShell/m-p/1446149#M26208</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When quering Get Datasource from Group in PowerShell the response is nested JSON. I´m not very good with PowerShell so I´m having problems picking out the values that I need. What I´m after is the url and the datasourceType. Below is a sample response. If I try to convert it to csv it will create two columns&amp;nbsp;@odata.context and value which does not traverse all the depths of the JSON. I don´t know how to pick out the relevant values. I have tried $MyVariable[0].[value][0].... but it says the array is empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I´m ultimetly trying to do is to grab the url for SharePoint sources, replace parts of the string and update it via the update datasource endpoint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"@odata.context":"&lt;A href="http://wabi-europe-north-b-redirect.analysis.windows.net/v1.0/myorg/groups/WORKSPACEID/$metadata#datasources&amp;quot;,&amp;quot;value" target="_blank"&gt;http://wabi-europe-north-b-redirect.analysis.windows.net/v1.0/myorg/groups/WORKSPACEID/$metadata#datasources","value&lt;/A&gt;":[&lt;BR /&gt;{&lt;BR /&gt;"datasourceType":"SharePointList","connectionDetails":{&lt;BR /&gt;"url":"&lt;A href="https://COMPANY.sharepoint.com/" target="_blank"&gt;https://COMPANY.sharepoint.com/&lt;/A&gt;"&lt;BR /&gt;},"datasourceId":"DATASOURCEID","gatewayId":"GATEWAYID"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 06:28:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Datasource-from-Group-help-parsing-the-JSON-in-PowerShell/m-p/1446149#M26208</guid>
      <dc:creator>bidgeir</dc:creator>
      <dc:date>2020-10-21T06:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get Datasource from Group - help parsing the JSON in PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Get-Datasource-from-Group-help-parsing-the-JSON-in-PowerShell/m-p/1448214#M26219</link>
      <description>&lt;P&gt;How is this related to Power BI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, have you tried to do this in Power Query?&amp;nbsp; It guides you through the JSON structure and allows you to pick the fields you need .&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 02:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Get-Datasource-from-Group-help-parsing-the-JSON-in-PowerShell/m-p/1448214#M26219</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-22T02:00:09Z</dc:date>
    </item>
  </channel>
</rss>

