<?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 Connecting QuickBooks Online to Power BI via API (OAuth2) - Issue with Refreshing Access Token in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-QuickBooks-Online-to-Power-BI-via-API-OAuth2-Issue/m-p/4025948#M53981</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am attempting to connect QuickBooks Online to Power BI using the API with OAuth2 authentication. I have tried several methods to get the data, including:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Power BI Web connector&lt;/LI&gt;&lt;LI&gt;QuickBooks connector&lt;/LI&gt;&lt;LI&gt;Custom connector (this was quite challenging to build, so I might have made some mistakes)&lt;/LI&gt;&lt;LI&gt;Python script&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Out of these methods, the Python script has been the most successful. However, I'm facing an issue where I need to manually change the access token every time I want to refresh the data.&lt;/P&gt;&lt;P&gt;I've created a function to fetch a new access token, but when I replace the static access token with this function in my data script, it doesn't work. I have also tried implementing this solution in the Web connector, but without any success.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue or could provide guidance on how to automate the access token refresh process within Power BI? Any help or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838"&gt;@amitchandak&lt;/a&gt;&amp;nbsp;it would be a great help if you could suggest something.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2024 02:06:20 GMT</pubDate>
    <dc:creator>novelmayank</dc:creator>
    <dc:date>2024-07-05T02:06:20Z</dc:date>
    <item>
      <title>Connecting QuickBooks Online to Power BI via API (OAuth2) - Issue with Refreshing Access Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-QuickBooks-Online-to-Power-BI-via-API-OAuth2-Issue/m-p/4025948#M53981</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am attempting to connect QuickBooks Online to Power BI using the API with OAuth2 authentication. I have tried several methods to get the data, including:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Power BI Web connector&lt;/LI&gt;&lt;LI&gt;QuickBooks connector&lt;/LI&gt;&lt;LI&gt;Custom connector (this was quite challenging to build, so I might have made some mistakes)&lt;/LI&gt;&lt;LI&gt;Python script&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Out of these methods, the Python script has been the most successful. However, I'm facing an issue where I need to manually change the access token every time I want to refresh the data.&lt;/P&gt;&lt;P&gt;I've created a function to fetch a new access token, but when I replace the static access token with this function in my data script, it doesn't work. I have also tried implementing this solution in the Web connector, but without any success.&lt;/P&gt;&lt;P&gt;Has anyone encountered a similar issue or could provide guidance on how to automate the access token refresh process within Power BI? Any help or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838"&gt;@amitchandak&lt;/a&gt;&amp;nbsp;it would be a great help if you could suggest something.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 02:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-QuickBooks-Online-to-Power-BI-via-API-OAuth2-Issue/m-p/4025948#M53981</guid>
      <dc:creator>novelmayank</dc:creator>
      <dc:date>2024-07-05T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting QuickBooks Online to Power BI via API (OAuth2) - Issue with Refreshing Access Token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Connecting-QuickBooks-Online-to-Power-BI-via-API-OAuth2-Issue/m-p/4029029#M53994</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/415943"&gt;@novelmayank&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest you use web connector to getting data from REST API. You can add a step to getting access token at first, then you can use this token in following steps. (this get token operation will be invoked every time the data source refresh to prevent the expired issue in other steps)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Power-Query/Pull-data-from-a-REST-API-Authentication/td-p/246006" target="_blank"&gt;Solved: Pull data from a REST API Authentication - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 01:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Connecting-QuickBooks-Online-to-Power-BI-via-API-OAuth2-Issue/m-p/4029029#M53994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T01:33:03Z</dc:date>
    </item>
  </channel>
</rss>

