<?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: Using Power Shell to update dataset parameter -Need help in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620513#M59955</link>
    <description>&lt;P&gt;URL should look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/Default.UpdateParameters" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/Default.UpdateParameters&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Docs &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 23:35:31 GMT</pubDate>
    <dc:creator>Deku</dc:creator>
    <dc:date>2025-03-21T23:35:31Z</dc:date>
    <item>
      <title>Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620480#M59954</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Everyone!&lt;BR /&gt;From the Power Shell command line interface, I run the commands below.&amp;nbsp; No errors are thrown but the Power BI service dataset parameters in My Workspace do not change to the new values.&lt;BR /&gt;Can someone please review the script&amp;nbsp; to see if I am missing something else? Maybe I am missing something.&lt;BR /&gt;Maybe adapt the script to try on your side and see if it runs for you.&lt;BR /&gt;There's documention online suggesting updating dataset parameters work.&lt;BR /&gt;&lt;BR /&gt;I think maybe I am missing some access permissions to do this.&amp;nbsp; I'm unsure.&lt;BR /&gt;Seeking help.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;STRONG&gt;Note: Copilot suggested inserting this in place of the variable below:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$urlUpdateParams = "&lt;A href="https://api.powerbi.com/v1.0/me/datasets/d62b1e0c-9060-4ecf-9994-ccd995d52693/parameters" target="_blank"&gt;https://api.powerbi.com/v1.0/me/datasets/d62b1e0c-9060-4ecf-9994-ccd995d52693/parameters&lt;/A&gt;"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;This doesnt work either.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$urlUpdateParams = "https://app.powerbi.com/groups/me/datasets/d62b1e0c-9060-4ecf-9994-ccd995d52693/parameters"


$body = '{
  "updateDetails": [
    {
      "name": "DirectPath_NonOneDrive_JSON",
      "newValue": "\\new\source\folder\path"
    },
    {
      "name": "Start Load Date_JSON",
      "newValue": "2025-02-10"
    },
    {
      "name": "End Load Date_JSON",
      "newValue": "2025-03-30"
    }
  ]
}'

$content = 'application/json'

Invoke-PowerBIRestMethod -Url $urlUpdateParams -Method Post -Body $body -ContentType $content&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 22:45:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620480#M59954</guid>
      <dc:creator>roncruiser</dc:creator>
      <dc:date>2025-03-21T22:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620513#M59955</link>
      <description>&lt;P&gt;URL should look like this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/Default.UpdateParameters" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/Default.UpdateParameters&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Docs &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 23:35:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620513#M59955</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-21T23:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620538#M59956</link>
      <description>&lt;P&gt;Thanks! I ran the scripit with the changes in the URL.&lt;BR /&gt;&lt;BR /&gt;The errors suggest there is an issue with the last line of the script.&lt;BR /&gt;Two errors: One with AggregateException and the other with Exception.&lt;BR /&gt;Anyone know what could be the issue?&amp;nbsp; &lt;STRONG&gt;-Seeking help&lt;BR /&gt;Thanks -&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;Invoke-PowerBIRestMethod -Url $urlUpdateParams -Method Post -Body $body -ContentType $content&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="roncruiser_1-1742603009934.png" style="width: 796px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1252943iEA24C0324EFB1493/image-dimensions/796x385?v=v2" width="796" height="385" role="button" title="roncruiser_1-1742603009934.png" alt="roncruiser_1-1742603009934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 00:25:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620538#M59956</guid>
      <dc:creator>roncruiser</dc:creator>
      <dc:date>2025-03-22T00:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620740#M59957</link>
      <description>&lt;P&gt;Update body like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1000016262.jpg" style="width: 2340px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1253002i35A0F496ECD05CDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1000016262.jpg" alt="1000016262.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see this &lt;A href="https://youtu.be/MJVSu47iMmo?si=zAyw3O74fF6c-U0R" target="_self"&gt;guyinacube video&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 08:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4620740#M59957</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-22T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4681398#M61018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/114828"&gt;@roncruiser&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1231947"&gt;@Deku&lt;/a&gt;&amp;nbsp; for the prompt response!&lt;BR /&gt;&lt;BR /&gt;May I ask if you have gotten this issue resolved?&lt;BR /&gt;If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 06:43:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4681398#M61018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-06T06:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4693581#M61203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/114828"&gt;@roncruiser&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.&lt;BR /&gt;If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.&lt;BR /&gt;If you have any further questions, feel free to reach out.&lt;BR /&gt;Thank you for being a part of the Microsoft Fabric Community Forum!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 07:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4693581#M61203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T07:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Power Shell to update dataset parameter -Need help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4698301#M61267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/114828"&gt;@roncruiser&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.&lt;BR /&gt;If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.&lt;BR /&gt;If you have any further questions, feel free to reach out.&lt;BR /&gt;Thank you for being a part of the Microsoft Fabric Community Forum!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 10:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Power-Shell-to-update-dataset-parameter-Need-help/m-p/4698301#M61267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-19T10:49:34Z</dc:date>
    </item>
  </channel>
</rss>

