<?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: Sending a post request from Alteryx to external API's daily in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1290908#M15663</link>
    <description>&lt;P&gt;This looks fine. I'm not sure why you wouldn't just use the download tool to post to the API as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, assuming you have some processing steps it would be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Download tool to get csv&lt;/LI&gt;&lt;LI&gt;Other tools to construct payload etc&lt;/LI&gt;&lt;LI&gt;Download tool to upload to API.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, there may be reasons to use Python for the POST (MFA bypass etc), and if so, then your method is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 04:19:32 GMT</pubDate>
    <dc:creator>KGT</dc:creator>
    <dc:date>2024-07-03T04:19:32Z</dc:date>
    <item>
      <title>Sending a post request from Alteryx to external API's daily</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1290877#M15662</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Hello Alteryx Community!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;I'm currently developing a workflow in Alteryx to automate the process of sending a .csv file to a vendor via their API endpoint. Here’s an outline of my approach:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Workflow Overview:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Input:&lt;/STRONG&gt; We receive a .csv file on our side, which is located on an SFTP server.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Objective:&lt;/STRONG&gt; Automate the sending of this .csv file to the vendor's API endpoint daily, along with an org_id variable in the request body. Authentication is handled using a bearer token provided by the vendor.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Proposed Workflow Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Using Alteryx Download Tool:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Utilize the Download Tool in Alteryx to fetch the .csv file from the SFTP location.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Save the file locally to a temporary location, ensuring it’s ready for further processing.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;STRONG&gt;Python Tool for API Integration:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Implement a Python Tool within Alteryx to:&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Construct and send an HTTP POST request to the vendor's API endpoint.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Include the downloaded .csv file as part of the request payload, dynamically referencing its file path (utilizing the "Filename from a Field" option in the Download Tool).&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;Incorporate the org_id&lt;SPAN&gt; variable into the request body to meet API requirements.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;3. Automation and Schedule:&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;The entire workflow will be scheduled to run once a day using Alteryx Scheduler to automate the process of fetching and sending the reports over.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#000000"&gt;&lt;BR /&gt;Does this approach sound appropriate? Is there a better way or easier way to do this? Any feedback or suggestions would be greatly appreciated!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2" color="#000000"&gt;Thank you in advance for your insights!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 01:54:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1290877#M15662</guid>
      <dc:creator>sschavan</dc:creator>
      <dc:date>2024-07-03T01:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a post request from Alteryx to external API's daily</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1290908#M15663</link>
      <description>&lt;P&gt;This looks fine. I'm not sure why you wouldn't just use the download tool to post to the API as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, assuming you have some processing steps it would be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Download tool to get csv&lt;/LI&gt;&lt;LI&gt;Other tools to construct payload etc&lt;/LI&gt;&lt;LI&gt;Download tool to upload to API.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, there may be reasons to use Python for the POST (MFA bypass etc), and if so, then your method is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 04:19:32 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1290908#M15663</guid>
      <dc:creator>KGT</dc:creator>
      <dc:date>2024-07-03T04:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sending a post request from Alteryx to external API's daily</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1329785#M16099</link>
      <description>&lt;P&gt;Thank you for your response KGT! Yes, there some reasons due to which we selected a python tool and was able to get this done, Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:47:53 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Sending-a-post-request-from-Alteryx-to-external-API-s-daily/m-p/1329785#M16099</guid>
      <dc:creator>sschavan</dc:creator>
      <dc:date>2024-10-16T14:47:53Z</dc:date>
    </item>
  </channel>
</rss>

