<?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: Handling Dynamic headers while composing a csv file in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11834#M4559</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11539"&gt;@Bhagya_pola&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;My perspective on this requirement is as follows:&lt;BR /&gt;&lt;STRONG&gt;Assuming contents (headers to be formed) are coming from application or from file.&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Extract the dynamic keys (headers) by writing a script in Python, Ruby, or JavaScript.&lt;/LI&gt;&lt;LI&gt;Since the ‘Compose CSV’ step requires the headers to be aligned with a newline (\n), we can generate that using a formula.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Using multiple IF/ELSE conditions would make the design overly complex and reduce readability.”&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Try this approach and let us know if you need further help.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2026 05:23:51 GMT</pubDate>
    <dc:creator>shivakumara</dc:creator>
    <dc:date>2026-02-12T05:23:51Z</dc:date>
    <item>
      <title>Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11823#M4551</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;Currently I have a crazy requirement where the headers of a csv file are dynamic, I noticed just now that I can't access any pills in formula mode in order to write a lookup formula for headers section in compose csv action.&lt;BR /&gt;&lt;BR /&gt;Currently the only way I can think of is handling it with if and else conditions based on a field from input and compose csv accordingly.&lt;BR /&gt;&lt;BR /&gt;Is there any other efficient way we can achieve this?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 14:21:31 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11823#M4551</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-11T14:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11829#M4554</link>
      <description>&lt;P&gt;Question: are you reading from a CSV or writing a CSV? I can't tell from your description. Can you provide more details?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 18:30:12 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11829#M4554</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-11T18:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11831#M4556</link>
      <description>&lt;P&gt;While writing&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 19:02:22 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11831#M4556</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-11T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11832#M4557</link>
      <description>&lt;P&gt;I'd like to help but I still don't understand the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2026 21:46:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11832#M4557</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-11T21:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11834#M4559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11539"&gt;@Bhagya_pola&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;My perspective on this requirement is as follows:&lt;BR /&gt;&lt;STRONG&gt;Assuming contents (headers to be formed) are coming from application or from file.&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Extract the dynamic keys (headers) by writing a script in Python, Ruby, or JavaScript.&lt;/LI&gt;&lt;LI&gt;Since the ‘Compose CSV’ step requires the headers to be aligned with a newline (\n), we can generate that using a formula.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Using multiple IF/ELSE conditions would make the design overly complex and reduce readability.”&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;Try this approach and let us know if you need further help.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K A&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 05:23:51 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11834#M4559</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2026-02-12T05:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11835#M4560</link>
      <description>&lt;P&gt;Hello &lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1188"&gt;@gary1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The requirement is to generate a CSV where the headers are dynamic.&lt;BR /&gt;Based on a field from the source, the CSV headers need to change.&lt;/P&gt;&lt;P&gt;I configured these headers using a lookup table mapped to the source field. However, I later realized that these formulas do not work in the CSV compose block.&lt;/P&gt;&lt;P&gt;Currently, I am generating the CSV using multiple if-else conditions. I wanted to check if there is a better or more efficient approach to handle this.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 06:57:25 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11835#M4560</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-12T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11836#M4561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/8685"&gt;@shivakumara&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks! Yes, I’m currently trying this approach and will see how it goes.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 07:46:52 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11836#M4561</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-12T07:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11837#M4562</link>
      <description>&lt;P&gt;I wouldn't put the actual headers in the CSV compose action. In the action, name the columns something simple like "a,b,c,d,e" and generate the CSV without a header line.&lt;/P&gt;&lt;P&gt;Then, generate your dynamic headers however you want and simply "text add" the headers to the CSV output. You don't need Python or Ruby for this. You can do this in any input field.&lt;/P&gt;&lt;P&gt;It's as simple as:&lt;/P&gt;&lt;P&gt;"header1,header2,header3\n" + [CSV output datapill]&lt;/P&gt;&lt;P&gt;The headers could be another data pill or text.&lt;/P&gt;&lt;P&gt;Important: Don't forget the "\n" at the end to make a new line between the headers and CSV.&lt;/P&gt;&lt;P&gt;Check this post too. It's very similar to your issue and has the same solution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://systematic.workato.com/t5/workato-pros-discussion-board/csv-formatting-challenge/m-p/7994" target="_blank"&gt;https://systematic.workato.com/t5/workato-pros-discussion-board/csv-formatting-challenge/m-p/7994&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you're having trouble making the dynamic headers, then I would need to see your data source.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2026 15:27:50 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11837#M4562</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2026-02-12T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Handling Dynamic headers while composing a csv file</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11851#M4569</link>
      <description>&lt;P&gt;Oh, looks like a great work around,&lt;BR /&gt;let me give it a try&lt;STRONG&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 07:16:44 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/handling-dynamic-headers-while-composing-a-csv-file/m-p/11851#M4569</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2026-02-13T07:16:44Z</dc:date>
    </item>
  </channel>
</rss>

