<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Iason Koulas on Medium]]></title>
        <description><![CDATA[Stories by Iason Koulas on Medium]]></description>
        <link>https://medium.com/@koulasiason?source=rss-89e393e130b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ty2ruaC3kbR3YUrWDiqgwA.png</url>
            <title>Stories by Iason Koulas on Medium</title>
            <link>https://medium.com/@koulasiason?source=rss-89e393e130b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 07:09:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@koulasiason/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Parse CSV files as JSON objects in Azure Logic Apps and Power Automate]]></title>
            <link>https://blog.devgenius.io/parse-csv-files-as-json-objects-in-azure-logic-apps-and-power-automate-4d99d23306f7?source=rss-89e393e130b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d99d23306f7</guid>
            <category><![CDATA[power-automate]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[connector]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <dc:creator><![CDATA[Iason Koulas]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 14:34:42 GMT</pubDate>
            <atom:updated>2022-07-22T08:22:41.601Z</atom:updated>
            <content:encoded><![CDATA[<p>Based on <a href="https://kinsta.com/blog/cloud-market-share/">recent surveys</a>, Azure is the second most popular cloud computing service and environment in the world. One the available resources that Microsoft Azure offers is Logic apps. Azure Logic Apps is a cloud-based platform for creating and managing automated workflows, which is a series of steps that define a process or task that get executed after a trigger.</p><p>When you build a workflow using Azure Logic Apps, you can use connectors to quickly access and transform data. A Logic App Connector is basically a wrapper around an API that the underlying service uses to communicate with Azure Logic Apps. In a consumption logic app the connectors are categorized in Standard and Enterprise based on the pricing level.</p><p>A popular way to store data or configuration tables are CSV files. In Azure Logic Apps, while you are able to get/import CSV files, there is not a native built-in connector to parse/read the CSV file. The only available connectors require further subscription like Encodian and Plumsail Documents. In this article I present a native way to parse any CSV file in Azure Logic Apps and Power Automate as a JSON object. For this example I’ll read a CSV file from SharePoint using the “Get file content using path” connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/1*EZx5_WoWhpatAC--57FSCw.png" /><figcaption>CSV file used for the demo</figcaption></figure><h3>Step 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*RnGSII4HpakeML3JpkBbDg.png" /><figcaption>SharePoint connector and splitting the CSV for every line</figcaption></figure><pre>split(base64ToString(outputs(&#39;Get_file_content_using_path&#39;)?[&#39;body&#39;]?[&#39;$content&#39;]), decodeUriComponent(&#39;%0D%0A&#39;))</pre><p>In this step we are splitting the contents of the CSV file on every new line into an array.</p><p><strong>Compose action:</strong> Use this action to design a cloud flow.</p><p><strong>Functions used:</strong></p><p><strong>split</strong>: Return an array that contains substrings, separated by commas, based on the specified delimiter character in the original string.</p><pre>split(&#39;&lt;text&gt;&#39;, &#39;&lt;delimiter&gt;&#39;)</pre><p><strong>base64ToString</strong>: Return the string version for a base64-encoded string, effectively decoding the base64 string. Use this function rather than <a href="https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#decodeBase64">decodeBase64()</a>, which is deprecated.</p><pre>base64ToString(&#39;&lt;value&gt;&#39;)</pre><p><strong>[‘body’]?[‘$content’]</strong>: Return all the contents of the body of the file through the SharePoint connector.</p><p><strong>decodeUriComponent</strong>: Return a string that replaces escape characters with decoded versions. %0D%0A is what ANSI encoded files use for their line brakes.</p><pre>decodeUriComponent(&#39;&lt;value&gt;&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*zbQ80qG-gngJ__j677OOgQ.png" /><figcaption>Step 1 output</figcaption></figure><h3>Step 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*SyaEdLzO1caWmNCYa8W7wg.png" /><figcaption>Compose action for Step 2</figcaption></figure><pre>take(outputs(&#39;splitByLines&#39;),add(length(outputs(&#39;splitByLines&#39;)),<br>-1))</pre><p>In this step we are removing the last row of the array produced from the previous step.</p><p><strong>Compose action</strong>: Use this action to design a cloud flow.</p><p><strong>Functions used</strong>:</p><p><strong>take</strong>: Return items from the front of a collection.</p><pre>take(&#39;&lt;collection&gt;&#39;, &lt;count&gt;)</pre><p><strong>add</strong>: Return the result from adding two numbers.</p><pre>add(&lt;summand_1&gt;, &lt;summand_2&gt;)</pre><p><strong>length</strong>: Return the number of items in a collection.</p><pre>length(&#39;&lt;collection&gt;&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*TBq4WCLMxSzh0zrCNSMcdg.png" /><figcaption>Step 2 output</figcaption></figure><h3>Step 3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*YAznMepioif7l56bzVrBpg.png" /><figcaption>Compose action for step 3</figcaption></figure><pre>split(first(outputs(&#39;splitByLines&#39;)), &#39;,&#39;)</pre><p>In this step we are splitting each line on the delimiter, in this case is comma, and then getting the element of the array to retrieve the headers or fields of the CSV file.</p><p><strong>Compose action</strong>: Use this action to design a cloud flow.</p><p><strong>Functions used</strong>:</p><p><strong>first</strong>: Return the first item from a string or array.</p><pre>first(&#39;&lt;collection&gt;&#39;)</pre><p><strong>split</strong>: Return an array that contains substrings, separated by commas, based on the specified delimiter character in the original string.</p><pre>split(&#39;&lt;text&gt;&#39;, &#39;&lt;delimiter&gt;&#39;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*r_xQeLg3eOPwwNUxLtJARQ.png" /><figcaption>Step 3 output</figcaption></figure><h3>Step 4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*Wa88UNp-7_a5i79M9IID_A.png" /><figcaption>Select action for step 4</figcaption></figure><pre>From:</pre><pre>skip(outputs(&#39;removedLastLine&#39;), 1)</pre><pre>Map:</pre><pre>outputs(&#39;fieldNames&#39;)[0]   ||||||||||||   split(item(), &#39;,&#39;)?[0]</pre><pre>outputs(&#39;fieldNames&#39;)[1]   ||||||||||||   split(item(), &#39;,&#39;)?[1]</pre><p>In this step we are transforming the shape of our previous array so we map each header with the corresponding values (key — value).</p><p><strong>Select action</strong>: Use this action to transform the shape of objects in an array. For example, you can add, remove, or rename elements in each object in an array.</p><p><strong>Functions used</strong>:</p><p><strong>split</strong>: Return an array that contains substrings, separated by commas, based on the specified delimiter character in the original string.</p><pre>split(&#39;&lt;text&gt;&#39;, &#39;&lt;delimiter&gt;&#39;)</pre><p><strong>skip</strong>: Remove items from the front of a collection, and return <em>all the other</em> items.</p><pre>skip([&lt;collection&gt;], &lt;count&gt;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*B11kLcQMaLqFiGTjELXGEA.png" /><figcaption>Step 4 output</figcaption></figure><h3>Step 5</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*Zmwaa0vwIoojfU9bX1ScaA.png" /><figcaption>Parse JSON action for step 5</figcaption></figure><p>In this step we are parsing the array of step 4 and transforming it into a JSON. In order to get the schema of the JSON, execute the workflow from step 1 to step 4 and use the sample JSON output to generate the schema for this step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*ZwBRovJ7MFRcFo7aaAPW7w.png" /><figcaption>Step 5 output</figcaption></figure><p>References:</p><p>Microsoft Logic Apps functions documentation: <a href="https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference">Reference guide for expression functions — Azure Logic Apps | Microsoft Docs</a></p><p>Data operations for Power Automate: <a href="https://docs.microsoft.com/en-us/power-automate/data-operations">Use data operations in Power Automate (contains video) — Power Automate | Microsoft Docs</a></p><p>Similar tutorial for CSV file parsing: <a href="https://www.youtube.com/watch?v=rNTEOk0cq4k">How to Parse/Read a CSV file in Microsoft Power Automate Flow for Azure Logic Apps — YouTube</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d99d23306f7" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/parse-csv-files-as-json-objects-in-azure-logic-apps-and-power-automate-4d99d23306f7">Parse CSV files as JSON objects in Azure Logic Apps and Power Automate</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>