<?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: Refreshing data from REST API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/510449#M15730</link>
    <description>&lt;P&gt;Did this get resolved? I am having same issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2018 12:28:04 GMT</pubDate>
    <dc:creator>aduval</dc:creator>
    <dc:date>2018-09-07T12:28:04Z</dc:date>
    <item>
      <title>Refreshing data from REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/403903#M12049</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a REST API setup as one of my datasets.&amp;nbsp; What is the best way to get it to schedule refreshes, say 3x a day like 8am,12pm,3pm to capture the latest data in my report.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My REST API code is as follows.&amp;nbsp; Is there a line i should add to the API code or any other way that i can get this to update automatically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let    
url = "API LINK HERE", 
body = "{""Username"": ""xxxxxxxx"", ""Password"": ""xxxxxxxx"", ""CustomerID"": ""x""}",   

Source  = Json.Document(Web.Contents(url,   [ 
     Headers = [#"Content-Type"="application/json"],
     Content=Text.ToBinary(body)   
]   
)   
),
in
    #"Renamed Columns1"&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/403903#M12049</guid>
      <dc:creator>ChrisWeeks92</dc:creator>
      <dc:date>2018-04-25T07:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data from REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/405021#M12080</link>
      <description>&lt;P&gt;Have you tried to&amp;nbsp;follow the article below to configure Shceduled Refresh?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/refresh-scheduled-refresh" target="_self"&gt;Configuring scheduled refresh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If yes, what is the error messages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If there are errors popped out, please share it here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code you posted&amp;nbsp;should be the connection string stored in Power BI Desktop, which belongs to the web contents, please check the article below and see if it would work in your scenario:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/" target="_self"&gt;Dynamic Web.Contents() and Power BI Refresh Errors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 10:31:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/405021#M12080</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-04-26T10:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data from REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/414555#M12338</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the delay, i have been busy on other projects.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just tried Scheduled refresh as below.&amp;nbsp; It comes back with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Failed to update data source credentials: Web.Contents failed to get contents from '&lt;EM&gt;API URL&lt;/EM&gt;' (405): Method Not Allowed&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;&lt;A href="https://app.powerbi.com/" target="_blank"&gt;Hide details&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;I do have a personal gateway setup for this as i think it mentions that it would need a personal data gateway too but it comes back with "Your data source can't be refreshed because the credentials are invalid. Please update your credentials and try again." I have tried my Microsoft ID, API username/password and my computer login details.&amp;nbsp; so any help will be much appreciated to where i am going wrong.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;I don't quite understand where your second article is referencing in my case, what should i add/change in my file to refresh the API without actually opening the file and refreshing the data.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="detailsExpander"&gt;Chris&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2018 09:29:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/414555#M12338</guid>
      <dc:creator>ChrisWeeks92</dc:creator>
      <dc:date>2018-05-10T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data from REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/510449#M15730</link>
      <description>&lt;P&gt;Did this get resolved? I am having same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 12:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/510449#M15730</guid>
      <dc:creator>aduval</dc:creator>
      <dc:date>2018-09-07T12:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing data from REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/510472#M15731</link>
      <description>&lt;P&gt;Yes this did get resolved.&amp;nbsp; It was the configuration of the API on the developers side.&amp;nbsp; The developer had fixed the API for me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 13:05:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Refreshing-data-from-REST-API/m-p/510472#M15731</guid>
      <dc:creator>ChrisWeeks92</dc:creator>
      <dc:date>2018-09-07T13:05:18Z</dc:date>
    </item>
  </channel>
</rss>

