<?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: API Update Dataflow Name in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000882#M40571</link>
    <description>&lt;P&gt;which authentication are you using?&lt;BR /&gt;Is it service principal or user token for triggering the API?&lt;/P&gt;&lt;P&gt;Based on the error messgae, it seems that the particular account/app doesnt have access to that workspace which contains the dataflow&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 11:52:22 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2023-01-04T11:52:22Z</dc:date>
    <item>
      <title>API Update Dataflow Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000494#M40565</link>
      <description>&lt;P&gt;I am trying to change the name of a dataflow with this API.&lt;/P&gt;&lt;P&gt;It works with the "Try it" on the documentation but I can't get it to work in Powershell script.&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="Charline_74_1-1672823798656.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/849642i5308AE240930661E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Charline_74_1-1672823798656.png" alt="Charline_74_1-1672823798656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 09:17:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000494#M40565</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-01-04T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: API Update Dataflow Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000707#M40567</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;Can you please share the overall code that you are using and the error message when executed via powershell rather than just the image?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 10:27:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000707#M40567</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2023-01-04T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: API Update Dataflow Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000727#M40568</link>
      <description>&lt;P&gt;Script PowerShell :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$body=@{
    updateDetails=@(
        @{
            name = "DTF TEST Pipeline 1.0.2"
        }
    )
}

$jsonPostBody = $body | convertTo-JSON

$url = "https://api.powerbi.com/v1.0/myorg/groups/8569358a-549c-466a-894c-de113f5c4fb1/dataflows/8774dad3-3f17-4444-b73b-b82cea0812b6"

Invoke-PowerBIRestMethod -Url $url -Method Post -Body $jsonPostBody -Verbose -ContentType 'application/json'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Message :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Invoke-PowerBIRestMethod : Une ou plusieurs erreurs se sont produites.
Au caractère Ligne:28 : 1
+ Invoke-PowerBIRestMethod -Url $url -Method Post -Body $jsonPostBody - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], AggregateException
    + FullyQualifiedErrorId : Une ou plusieurs erreurs se sont produites.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod
 
VERBOSE: Request Uri: https://api.powerbi.com/v1.0/myorg/groups/8569358a-549c-466a-894c-de113f5c4fb1/dataflows/8774dad3-3f17-4444-b73b-b82cea0812b6
VERBOSE: Status Code: NotFound (404)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Jan 2023 10:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000727#M40568</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-01-04T10:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: API Update Dataflow Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000882#M40571</link>
      <description>&lt;P&gt;which authentication are you using?&lt;BR /&gt;Is it service principal or user token for triggering the API?&lt;/P&gt;&lt;P&gt;Based on the error messgae, it seems that the particular account/app doesnt have access to that workspace which contains the dataflow&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 11:52:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3000882#M40571</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2023-01-04T11:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: API Update Dataflow Name</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3001007#M40573</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/226550"&gt;@NandanHegde&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run it I use a service account which is admin of the workspace&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:09:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Update-Dataflow-Name/m-p/3001007#M40573</guid>
      <dc:creator>Charline_74</dc:creator>
      <dc:date>2023-01-04T13:09:01Z</dc:date>
    </item>
  </channel>
</rss>

