<?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: CompanyID is not returning from Business central for BC API Companies in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4635016#M8360</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, am able to get the CompanyID information from Postman and even with Spark notebooks also, not sure why pipelines is not returning the CompanyID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the Bearer token authentication approach in notebook and loading the data to fabric lakehouse in config table from there am referencing it for my needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 12:03:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-04-02T12:03:08Z</dc:date>
    <item>
      <title>CompanyID is not returning from Business central for BC API Companies</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628184#M8268</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple companies in the Microsoft Dynamics 365 Business Central environment, so i want to pull all of those company IDs using REST API for automating some processes. So I went through the API documentation of Microsoft to get the companies list with IDs.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_company_get" target="_blank" rel="noopener"&gt;GET companies - Business Central | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the API response, it's mentioned that it will return the companyId for each company. So I implemented the same using Fabric Data Pipeline, but am not getting the CompanyID from the API response. Is there any reason? I'm using Bearer token authentication only but still am not seeing the CompanyID in api response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pipeline&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="pavannarani_0-1743105060286.png" style="width: 459px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1254911iF0D8892E611DD10E/image-dimensions/459x171?v=v2" width="459" height="171" role="button" title="pavannarani_0-1743105060286.png" alt="pavannarani_0-1743105060286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual API response coming from data pipeline&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="pavannarani_1-1743105103397.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1254912i1CFFFCB4127B7C26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavannarani_1-1743105103397.png" alt="pavannarani_1-1743105103397.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected API Response from Microsoft&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="pavannarani_2-1743105374028.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1254917iAA19260B6038EBAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavannarani_2-1743105374028.png" alt="pavannarani_2-1743105374028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other way to pull the CompanyIDs of Business Central companies using Fabric data pipelines. Am i missing anything can anyone suggest me please and help me in resolving it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance, any help is really appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 19:58:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628184#M8268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-27T19:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: CompanyID is not returning from Business central for BC API Companies</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628736#M8276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ensure your Bearer token has adequate permissions by checking the Azure AD app registration and its role assignments in Business Central&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use tools like Postman or Power Query to directly test the API endpoint and confirm whether `CompanyID` is returned outside of Fabric Data Pipeline&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If the issue persists, consider using Power Query or Spark Notebooks within Fabric to extract data directly from Business Central APIs&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 07:35:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628736#M8276</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-03-28T07:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: CompanyID is not returning from Business central for BC API Companies</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628753#M8277</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching MS FAbric commmunity support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Possible Causes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;API Version Difference: The expected API response in the Microsoft documentation includes "id", but your actual response does not. Ensure you're using the latest Business Central API version (v2.0 or higher).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incorrect API Endpoint: Double-check the API endpoint you are using. It should be:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.businesscentral.dynamics.com/v2.0/{tenantId}/production/api/v2.0/companies" target="_blank"&gt;https://api.businesscentral.dynamics.com/v2.0/{tenantId}/production/api/v2.0/companies&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Ensure you have replaced {tenantId} with your actual tenant ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Missing Permissions in Azure AD App Registration: Your Azure AD app may not have the necessary permissions.&lt;/P&gt;
&lt;P&gt;Ensure the app has Financials.ReadWrite.All or Financials.Read.All permissions in Azure AD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API Query Parameters: Try adding $select=id,name to your request:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.businesscentral.dynamics.com/v2.0/{tenantId}/production/api/v2.0/companies?$select=id,name" target="_blank"&gt;https://api.businesscentral.dynamics.com/v2.0/{tenantId}/production/api/v2.0/companies?$select=id,name&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This ensures only relevant fields (id, name) are retrieved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Prashanth Are&lt;/P&gt;
&lt;P&gt;MS Fabric community support&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 07:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4628753#M8277</guid>
      <dc:creator>v-prasare</dc:creator>
      <dc:date>2025-03-28T07:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: CompanyID is not returning from Business central for BC API Companies</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4629053#M8283</link>
      <description>&lt;P&gt;Yes i tried this but still seeing the response like this below even I filtered with id and name also&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pavannarani_0-1743158980133.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1255110i670CBA13CD34B027/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pavannarani_0-1743158980133.png" alt="pavannarani_0-1743158980133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 10:48:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4629053#M8283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-28T10:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: CompanyID is not returning from Business central for BC API Companies</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4635016#M8360</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, am able to get the CompanyID information from Postman and even with Spark notebooks also, not sure why pipelines is not returning the CompanyID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the Bearer token authentication approach in notebook and loading the data to fabric lakehouse in config table from there am referencing it for my needs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/CompanyID-is-not-returning-from-Business-central-for-BC-API/m-p/4635016#M8360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-02T12:03:08Z</dc:date>
    </item>
  </channel>
</rss>

