<?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: Trim And Rename Collection Field Names in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94310#M43719</link>
    <description>Thanks Carl for the suggestion.&lt;BR /&gt;I have updated my code and also included Flags for Trim and Uppercase using If else condition within for loop. Now its working well.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 16 Nov 2022 15:20:00 GMT</pubDate>
    <dc:creator>vinodchinthakin</dc:creator>
    <dc:date>2022-11-16T15:20:00Z</dc:date>
    <item>
      <title>Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94304#M43713</link>
      <description>Hi All.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a collection with 20 columns. I want to rename all of them with same names in Upper or Lower case and also want to trim the field names using a code stage.&lt;BR /&gt;&lt;BR /&gt;can anyone have a solution?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94304#M43713</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-10-28T07:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94305#M43714</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;You could get a list of the current column names using the 'Get Collection Fields' action. You could then Loop the collection, formatting the values to meet your requirement. Then, call the 'Rename Collection Fields' action passing the data Collection and the Collection containing the formatted column names to the action.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Senior Developer&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Oct 2022 08:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94305#M43714</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2022-10-28T08:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94306#M43715</link>
      <description>&lt;P&gt;Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;As Carl says, this is the easiest option, you can use the following functions in a calculation stage within a loop to do this such as&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Trim(Lower([collection.Name]))&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Trim(Upper([collection.Name]))&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ronan Considine &lt;BR /&gt;Senior Business Analyst&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Nov 2022 17:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94306#M43715</guid>
      <dc:creator>RonanConsidine</dc:creator>
      <dc:date>2022-11-15T17:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94307#M43716</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/2171"&gt;@Carl__Carter&lt;/a&gt; &lt;A class="user-content-mention" data-sign="@" data-contactkey="e241a17d-640c-4c03-8bf2-a9b64266c499" data-tag-text="@Ronan Considine" href="https://community.blueprism.com/network/profile?UserKey=e241a17d-640c-4c03-8bf2-a9b64266c499" data-itemmentionkey="3304009c-03fd-4499-abab-efb49d333a70"&gt;@Ronan Considine&lt;/A&gt;. This logic seems time consuming for me. I couldn't able to achieve it properly.&lt;BR /&gt;&lt;BR /&gt;If possible could pls try it in your blue prism and share screenshots of process action steps . Want to look how its achieved.&lt;BR /&gt;&lt;BR /&gt;Instead of Loops, Do we have any code stage for this?​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2022 10:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94307#M43716</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-11-16T10:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94308#M43717</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I just figured out the code. Following code helps me to achieve my requirement. I just tweaked Rename Field Action code.&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;Collection_Out&amp;nbsp;=&amp;nbsp;Collection_In.Copy&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;&amp;nbsp;For Each c As&amp;nbsp;DataColumn&amp;nbsp;in&amp;nbsp;Collection_Out.Columns&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;c.ColumnName&amp;nbsp;= Trim(c.ColumnName).ToUpper&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit For&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;Next&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94308#M43717</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-11-16T14:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94309#M43718</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;When there is a solution which doesn't require custom code, then I would always offer this first unless there was a major performance gain from using a code stage. This is so more of the community can make use of the solution without needing to understand .NET code.&lt;BR /&gt;&lt;BR /&gt;Well done in figuring out the custom code. I can see there is an issue with your code though. Your 'Exit For' command will exit your 'For Loop' after the first column name has been renamed. You should remove the 'Exit For' command unless it is your intention to only rename the first column.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Carl Carter&lt;BR /&gt;Senior Developer&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94309#M43718</guid>
      <dc:creator>Carl__Carter</dc:creator>
      <dc:date>2022-11-16T14:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Trim And Rename Collection Field Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94310#M43719</link>
      <description>Thanks Carl for the suggestion.&lt;BR /&gt;I have updated my code and also included Flags for Trim and Uppercase using If else condition within for loop. Now its working well.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Nov 2022 15:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Trim-And-Rename-Collection-Field-Names/m-p/94310#M43719</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-11-16T15:20:00Z</dc:date>
    </item>
  </channel>
</rss>

