<?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: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260184#M6099</link>
    <description>&lt;P&gt;You are getting the cookie correct indeed. However, I can see that ADF did not support setting a cookie in a copy activity: &lt;A href="https://learn.microsoft.com/en-us/answers/questions/1292520/how-to-add-cookie-header-in-adf-copy-activity" target="_blank"&gt;https://learn.microsoft.com/en-us/answers/questions/1292520/how-to-add-cookie-header-in-adf-copy-activity&lt;/A&gt;. I think Fabric does not support it either. I think you need to set up antoher authentication at the Acumatica ERP side. I found some blogs that might help: &lt;A href="https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&amp;amp;pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7" target="_blank"&gt;https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&amp;amp;pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.celigo.com/hc/en-us/articles/360047399452-Set-up-an-OAuth-2-0-connection-to-Acumatica#set-up-an-oauth-2-0-connection-to-acumatica-0" target="_blank"&gt;https://docs.celigo.com/hc/en-us/articles/360047399452-Set-up-an-OAuth-2-0-connection-to-Acumatica#set-up-an-oauth-2-0-connection-to-acumatica-0&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2024 08:29:12 GMT</pubDate>
    <dc:creator>FabianSchut</dc:creator>
    <dc:date>2024-10-28T08:29:12Z</dc:date>
    <item>
      <title>REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4259946#M6092</link>
      <description>&lt;P&gt;Issue Description:&lt;BR /&gt;I'm trying to integrate Acumatica ERP with Microsoft Fabric using the REST API.&lt;/P&gt;&lt;P&gt;1. Initial Login (Web Activity) works successfully:&lt;BR /&gt;URL: https://{MYBASEURL}/entity/auth/login&lt;BR /&gt;Method: POST&lt;BR /&gt;Headers:&lt;BR /&gt;- Accept: application/json&lt;BR /&gt;- Content-Type: application/json&lt;BR /&gt;Body:&lt;BR /&gt;{&lt;BR /&gt;"name": "[username]",&lt;BR /&gt;"password": "[password]"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The login returns successful with cookies in ResponseHeaders['Set-Cookie'].&lt;/P&gt;&lt;P&gt;2. Subsequent Copy Activity fails with 401 Unauthorized:&lt;BR /&gt;When trying to access: https://[MYBASEURL]/entity/Default/20.200.001/Customer&lt;/P&gt;&lt;P&gt;I've tried passing the authentication cookie from the login response:&lt;BR /&gt;Headers:&lt;BR /&gt;- Accept: application/json&lt;BR /&gt;- Content-Type: application/json&lt;BR /&gt;- Cookie: @{activity('Web_Activity_Login_Testing_1').output.ResponseHeaders['Set-Cookie']}&lt;/P&gt;&lt;P&gt;Error received:&lt;BR /&gt;"ErrorCode=RestCallFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with client error, status code 401 Unauthorized, please check your activity settings."&lt;/P&gt;&lt;P&gt;Questions:&lt;BR /&gt;1. What is the correct way to pass authentication from the login response to subsequent API calls in Microsoft Fabric?&lt;BR /&gt;2. Is there a recommended approach for maintaining session/authentication when using Acumatica REST API with Microsoft Fabric pipelines?&lt;BR /&gt;3. Are there any specific header requirements I'm missing?&lt;/P&gt;&lt;P&gt;Full login response for reference is below:&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Response"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;""&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"ResponseHeaders"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Cache-Control"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"private"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Set-Cookie"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"ASP.NET_SessionId=XXXXX; path=/; HttpOnly; SameSite=Lax;UserBranch=1; path=/;Locale=Culture=en-US&amp;amp;TimeZone=GMTM0700A; expires=Thu, 31-Oct-2024 05:40:05 GMT; path=/;.ASPXAUTH=XXXXX; path=/; secure; HttpOnly; SameSite=None;ASP.NET_SessionId=XXXXX; path=/; HttpOnly; SameSite=Lax;UserBranch=1; path=/;Locale=Culture=en-US&amp;amp;TimeZone=GMTM0700A; expires=Thu, 31-Oct-2024 05:40:05 GMT; path=/;.ASPXAUTH=XXXXX; path=/; secure; HttpOnly; SameSite=None;requestid=XXXXX; path=/;requeststat=+st:118+sc:~/entity/auth/login+start:638656908055761270+tg:; path=/"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Date"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;"Mon, 28 Oct 2024 05:40:05 GMT"&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"executionDuration"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;4&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:15:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4259946#M6092</guid>
      <dc:creator>justmehere</dc:creator>
      <dc:date>2024-10-28T06:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4259958#M6093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to get it working in another client like postman?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:30:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4259958#M6093</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-28T06:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260002#M6094</link>
      <description>&lt;P&gt;Yes I am able to get it working on postman&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260002#M6094</guid>
      <dc:creator>justmehere</dc:creator>
      <dc:date>2024-10-28T06:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260048#M6095</link>
      <description>&lt;P&gt;I think the error is in the cookie statement: @{activity('Web_Activity_Login_Testing_1').output.ResponseHeaders['Set-Cookie']}. Can you show the output of the web activity? You can blur the sensitive information.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 07:15:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260048#M6095</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-28T07:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260082#M6096</link>
      <description>&lt;P&gt;This is the output from the web activity with sensitive info blurred:&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Response"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;""&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"ResponseHeaders"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Cache-Control"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;"private"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Set-Cookie"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;"ASP.NET_SessionId=XXXXX; path=/; HttpOnly; SameSite=Lax;UserBranch=1; path=/;Locale=Culture=en-US&amp;amp;TimeZone=GMTM0700A; expires=Thu, 31-Oct-2024 05:40:05 GMT; path=/;.ASPXAUTH=XXXXX; path=/; secure; HttpOnly; SameSite=None;ASP.NET_SessionId=XXXXX; path=/; HttpOnly; SameSite=Lax;UserBranch=1; path=/;Locale=Culture=en-US&amp;amp;TimeZone=GMTM0700A; expires=Thu, 31-Oct-2024 05:40:05 GMT; path=/;.ASPXAUTH=XXXXX; path=/; secure; HttpOnly; SameSite=None;requestid=XXXXX; path=/;requeststat=+st:118+sc:~/entity/auth/login+start:638656908055761270+tg:; path=/"&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"Date"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;"Mon, 28 Oct 2024 05:40:05 GMT"&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;"executionDuration"&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;4&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 07:31:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260082#M6096</guid>
      <dc:creator>justmehere</dc:creator>
      <dc:date>2024-10-28T07:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260184#M6099</link>
      <description>&lt;P&gt;You are getting the cookie correct indeed. However, I can see that ADF did not support setting a cookie in a copy activity: &lt;A href="https://learn.microsoft.com/en-us/answers/questions/1292520/how-to-add-cookie-header-in-adf-copy-activity" target="_blank"&gt;https://learn.microsoft.com/en-us/answers/questions/1292520/how-to-add-cookie-header-in-adf-copy-activity&lt;/A&gt;. I think Fabric does not support it either. I think you need to set up antoher authentication at the Acumatica ERP side. I found some blogs that might help: &lt;A href="https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&amp;amp;pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7" target="_blank"&gt;https://help.acumatica.com/(W(5))/Help?ScreenId=ShowWiki&amp;amp;pageid=a8f71c44-9f5c-4af8-9d47-bc815c8a58e7&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.celigo.com/hc/en-us/articles/360047399452-Set-up-an-OAuth-2-0-connection-to-Acumatica#set-up-an-oauth-2-0-connection-to-acumatica-0" target="_blank"&gt;https://docs.celigo.com/hc/en-us/articles/360047399452-Set-up-an-OAuth-2-0-connection-to-Acumatica#set-up-an-oauth-2-0-connection-to-acumatica-0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 08:29:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260184#M6099</guid>
      <dc:creator>FabianSchut</dc:creator>
      <dc:date>2024-10-28T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260289#M6100</link>
      <description>&lt;P&gt;Thank you so much. I opted to use the Notebook activity and wrote the python code below and I can pull the data. Thank you, this has saved me lots of time:&lt;BR /&gt;Attaching the python code for anyone in future:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; requests&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt; json&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Login to Acumatica&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;login_to_acumatica&lt;/SPAN&gt;&lt;SPAN&gt;():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; login_url = &lt;/SPAN&gt;&lt;SPAN&gt;"https://{YOUR_BASE_URL}/entity/auth/login"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; headers = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Content-Type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; login_data = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"XXXXX"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"password"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"XXXXX"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; session = requests.Session()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; response = session.post(login_url, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=headers, &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;=login_data)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; session, response.cookies&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Get Data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;def&lt;/SPAN&gt; &lt;SPAN&gt;get_customer_data&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;session&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;cookies&lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; customer_url = &lt;/SPAN&gt;&lt;SPAN&gt;"https://{YOUR_BASE_URL}/entity/{API_VERSION}/{}/Customer"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; headers = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Accept"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Content-Type"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"application/json"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; response = session.get(customer_url, &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=headers, &lt;/SPAN&gt;&lt;SPAN&gt;cookies&lt;/SPAN&gt;&lt;SPAN&gt;=cookies)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; response.json()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Main execution&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;session, cookies = login_to_acumatica()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;customer_data = get_customer_data(session, cookies)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;customer_data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Oct 2024 09:37:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4260289#M6100</guid>
      <dc:creator>justmehere</dc:creator>
      <dc:date>2024-10-28T09:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: REST API Authentication Issue in Microsoft Fabric Pipeline - 401 Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4339075#M6696</link>
      <description>&lt;P&gt;What were you trying to collect from Acumatica, that you couldn't just use the odata feed for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm in the process of ingestion to fabric and so far I've just been using dataflow gen 2, wanted to leave off a large amount of unnecessary data from the ingestion as Acumatica is north of 4000 tables. Was just curious about the needs requirements and use case?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 17:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/REST-API-Authentication-Issue-in-Microsoft-Fabric-Pipeline-401/m-p/4339075#M6696</guid>
      <dc:creator>aprotteau-dac</dc:creator>
      <dc:date>2024-12-20T17:51:58Z</dc:date>
    </item>
  </channel>
</rss>

