<?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: How do I connect to BC365 custom APIs through Pipeline Copy data activity? in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4398173#M7023</link>
    <description>&lt;P&gt;I have a custom/"advanced" API in BC365, and I want to pull all data from this API into my Fabric Warehouse (or Lakehouse).&lt;BR /&gt;&lt;BR /&gt;I want to use the REST connection in Copy data activity within pipelines for this. For the "base URL" I provided the base URL (&lt;SPAN&gt;&lt;A title="https://api.businesscentral.dynamics.com/v2.0/" href="https://api.businesscentral.dynamics.com/v2.0/" target="_blank" rel="noreferrer noopener"&gt;https://api.businesscentral.dynamics.com/v2.0/&lt;/A&gt;{{tenentid}}) and it seemed to work upon testing the connection:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am lost on how to proceed from here with:&amp;nbsp;&lt;/STRONG&gt;What to provide for other parameters and how to get these parameters?&lt;BR /&gt;&lt;BR /&gt;The data I specifically want to pull are salesInvoiceLines from BC365&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;custom&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;API. I need to pull all the salesInvoiceLines. So something like this, I assume:&amp;nbsp;&lt;SPAN&gt;&lt;A title="https://api.businesscentral.dynamics.com/v2.0/" href="https://api.businesscentral.dynamics.com/v2.0/" target="_blank" rel="noreferrer noopener"&gt;https://api.businesscentral.dynamics.com/v2.0/&lt;/A&gt;{{tenentid}}/Production/api/{{anonymized}}/SalesInvoices/v2.0/companies(guid)/salesInvoiceLines(guid).&lt;BR /&gt;&lt;BR /&gt;I'd appreciate specific instructions, thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 12:40:32 GMT</pubDate>
    <dc:creator>useruserhi91</dc:creator>
    <dc:date>2025-02-06T12:40:32Z</dc:date>
    <item>
      <title>How do I connect to BC365 custom APIs through Pipeline Copy data activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4398157#M7021</link>
      <description>&lt;P&gt;I have a custom/"advanced" API in BC365, and I want to pull all data from this API into my Fabric Warehouse (or Lakehouse).&lt;BR /&gt;&lt;BR /&gt;I want to use the ODATA connection in Copy data activity within pipelines for this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am presented with the above, and I need help on:&lt;/STRONG&gt;&lt;BR /&gt;1) What to login as - anonymous or basic authentication. And if "basic", do I simply put in my Microsoft email and password? (I am global admin).&lt;/P&gt;&lt;P&gt;2) What do I put into the "URL" field?&lt;BR /&gt;&lt;BR /&gt;The data I specifically want to pull are salesInvoiceLines from BC&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;custom&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;API. I need to pull all the salesInvoiceLines. I have tried so far to put this query in, but I get "invalid credentials":&amp;nbsp;&lt;SPAN&gt;&lt;A title="https://api.businesscentral.dynamics.com/v2.0/" href="https://api.businesscentral.dynamics.com/v2.0/" target="_blank" rel="noreferrer noopener"&gt;https://api.businesscentral.dynamics.com/v2.0/&lt;/A&gt;{{tenentid}}/Production/api/{{anonymized}}/SalesInvoices/v2.0/companies(guid)/salesInvoiceLines(guid).&lt;BR /&gt;&lt;BR /&gt;If anyone has tried this before, I'd appreciate more specific instructions, as the ODATA connection is new for me in Fabric. I may be completely off in my query. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 12:32:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4398157#M7021</guid>
      <dc:creator>useruserhi91</dc:creator>
      <dc:date>2025-02-06T12:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I connect to BC365 custom APIs through Pipeline Copy data activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4398173#M7023</link>
      <description>&lt;P&gt;I have a custom/"advanced" API in BC365, and I want to pull all data from this API into my Fabric Warehouse (or Lakehouse).&lt;BR /&gt;&lt;BR /&gt;I want to use the REST connection in Copy data activity within pipelines for this. For the "base URL" I provided the base URL (&lt;SPAN&gt;&lt;A title="https://api.businesscentral.dynamics.com/v2.0/" href="https://api.businesscentral.dynamics.com/v2.0/" target="_blank" rel="noreferrer noopener"&gt;https://api.businesscentral.dynamics.com/v2.0/&lt;/A&gt;{{tenentid}}) and it seemed to work upon testing the connection:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am lost on how to proceed from here with:&amp;nbsp;&lt;/STRONG&gt;What to provide for other parameters and how to get these parameters?&lt;BR /&gt;&lt;BR /&gt;The data I specifically want to pull are salesInvoiceLines from BC365&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;custom&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;API. I need to pull all the salesInvoiceLines. So something like this, I assume:&amp;nbsp;&lt;SPAN&gt;&lt;A title="https://api.businesscentral.dynamics.com/v2.0/" href="https://api.businesscentral.dynamics.com/v2.0/" target="_blank" rel="noreferrer noopener"&gt;https://api.businesscentral.dynamics.com/v2.0/&lt;/A&gt;{{tenentid}}/Production/api/{{anonymized}}/SalesInvoices/v2.0/companies(guid)/salesInvoiceLines(guid).&lt;BR /&gt;&lt;BR /&gt;I'd appreciate specific instructions, thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 12:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4398173#M7023</guid>
      <dc:creator>useruserhi91</dc:creator>
      <dc:date>2025-02-06T12:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I connect to BC365 custom APIs through Pipeline Copy data activity?</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4399050#M7025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="895223" data-lia-user-login="useruserhi91" class="lia-mention lia-mention-user"&gt;useruserhi91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;For your first question, I think for ODATA connections you can use either anonymous or basic authentication. Since you mentioned that you are a global administrator, it would be safer and more appropriate to use basic authentication.&lt;/P&gt;
&lt;P&gt;You can refer to the official documentation below to get a more in-depth understanding of both approaches:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/connector-odata#basic-authentication" target="_blank"&gt;Set up your OData connection - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your second question, I think the URL that needs to be entered should point to the ODATA endpoint of the Business Central instance. For extracting salesInvoiceLines, the URL format should be:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://api.businesscentral.dynamics.com/v2.0/{tenantid}/Production/ODataV4/Company('{companyid}')/salesInvoiceLines&lt;/LI-CODE&gt;
&lt;P&gt;Replace {tenantid} with the actual tenant ID and {companyid} with the query company ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 01:22:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/How-do-I-connect-to-BC365-custom-APIs-through-Pipeline-Copy-data/m-p/4399050#M7025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-07T01:22:12Z</dc:date>
    </item>
  </channel>
</rss>

