<?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: Rename table headers in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/603506#M3716</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1567332949"&gt;@nivnetanel96&lt;/a&gt;, this is the simplest way I can think of without modifying the context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example using the File key. Table below showing the original value of the key as a table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.02.04 PM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62998i7ECB03EDD7EF98B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-17 at 2.02.04 PM.png" alt="Screenshot 2024-10-17 at 2.02.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same ToTable function with a bunch of transformers applied.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.04.16 PM.png" style="width: 468px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62999i5436A22983981611/image-dimensions/468x224?v=v2" width="468" height="224" role="button" title="Screenshot 2024-10-17 at 2.04.16 PM.png" alt="Screenshot 2024-10-17 at 2.04.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The output should looks like below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.05.16 PM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/63000i051FB399AF9858E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-17 at 2.05.16 PM.png" alt="Screenshot 2024-10-17 at 2.05.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other methods but they require some programming knowledge and modification of the CommonServerUserPython script. You can check the&amp;nbsp;pascalToSpace function inside&amp;nbsp;&lt;SPAN&gt;CommonServerPython as an example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 03:07:46 GMT</pubDate>
    <dc:creator>jfernandes1</dc:creator>
    <dc:date>2024-10-17T03:07:46Z</dc:date>
    <item>
      <title>Rename table headers</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/600470#M3699</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi all&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table of data in Cortex XSOAR (e.g., a list of dictionaries with results from a query), and I need to rename one of the column headers before processing it further in my playbook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, I want to rename the column &lt;CODE&gt;oldName&lt;/CODE&gt; to &lt;CODE&gt;newName&lt;/CODE&gt;. How can I achieve this either within a script, automation, or as part of a playbook task?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there are any best practices or recommended approaches for handling this kind of column renaming, I'd appreciate the guidance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 10:48:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/600470#M3699</guid>
      <dc:creator>nivnetanel96</dc:creator>
      <dc:date>2024-10-13T10:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rename table headers</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/600852#M3712</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1567332949"&gt;@nivnetanel96&lt;/a&gt;&amp;nbsp;Are these table headers the keys of list of dictionaries you are getting back in response to your query? So when you say you want to change the header value do mean that you want to change one of the dict keys so that when you display them in a table the header is changed?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 18:25:42 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/600852#M3712</guid>
      <dc:creator>akoppad</dc:creator>
      <dc:date>2024-10-15T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rename table headers</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/603506#M3716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1567332949"&gt;@nivnetanel96&lt;/a&gt;, this is the simplest way I can think of without modifying the context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example using the File key. Table below showing the original value of the key as a table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.02.04 PM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62998i7ECB03EDD7EF98B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-17 at 2.02.04 PM.png" alt="Screenshot 2024-10-17 at 2.02.04 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Same ToTable function with a bunch of transformers applied.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.04.16 PM.png" style="width: 468px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62999i5436A22983981611/image-dimensions/468x224?v=v2" width="468" height="224" role="button" title="Screenshot 2024-10-17 at 2.04.16 PM.png" alt="Screenshot 2024-10-17 at 2.04.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The output should looks like below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-17 at 2.05.16 PM.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/63000i051FB399AF9858E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-17 at 2.05.16 PM.png" alt="Screenshot 2024-10-17 at 2.05.16 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other methods but they require some programming knowledge and modification of the CommonServerUserPython script. You can check the&amp;nbsp;pascalToSpace function inside&amp;nbsp;&lt;SPAN&gt;CommonServerPython as an example.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 03:07:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/rename-table-headers/m-p/603506#M3716</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2024-10-17T03:07:46Z</dc:date>
    </item>
  </channel>
</rss>

