<?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: Get Data type of a filed in a collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67005#M19610</link>
    <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;Whenever you interact with any application using Blue Prism, Blue Prism has its own internal methods/code stages of grabbing that data and converting it to a collection with how the data format seems to be. What you are asking is to decipher the way in how Blue Prism is trying to decode those field types which might not be in scope of ours as we can only determine what is the data type once the data has been grabbed by Blue Prism's code stage or any internal coding framework. This ask has to be either handled at the application end or you need to always forcefully cast it to the specific data format once Blue Prism grabs the data for you.&lt;BR /&gt;&lt;BR /&gt;I will shed some light on both of these approaches:&lt;BR /&gt;&lt;BR /&gt;If you want to allow a specific format to be included changes need to be done at the excel side where you can change the formatting of any column and in case of API you will have to change the back end code of the API to always restrict the data types to be of a common format.&lt;BR /&gt;&lt;BR /&gt;If you are at times getting the data as 'Date/DateTime' type of data my suggestion would be to cast the data into a specific type always no matter what type of data you get. You can have a similar collection with the same column name as a text type and just use a calculation stage to forcefully cast it in that way.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 19 May 2022 06:40:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-05-19T06:40:00Z</dc:date>
    <item>
      <title>Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67001#M19606</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a scenario where after getting data from Excel/API/DB into BP collection, I need to find the data type of a specific field in a collection.&lt;BR /&gt;&lt;BR /&gt;Do we have any action or code for that?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 05:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67001#M19606</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-05-19T05:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67002#M19607</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;I believe we already have an action under&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; called as &lt;STRONG&gt;'Get Collection Fields'&lt;/STRONG&gt; which will return us an output collection with field name and field type for all the fields present in the input collection that has been passed to it.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14228.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14395iF95941020EE86CED/image-size/large?v=v2&amp;amp;px=999" role="button" title="14228.png" alt="14228.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 06:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67002#M19607</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-19T06:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67003#M19608</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;You can use 'Get Collection Fields' action from default Utility - Collection Manipulation VBO. You just have to provide collection name as input and the output will give you a collection with the field names and their data types. You can then find the data type of any field you want.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Input Collection:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14232.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14394i0DD6354CD8D9D12A/image-size/large?v=v2&amp;amp;px=999" role="button" title="14232.png" alt="14232.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Action:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14233.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14396i594BC190A0D47991/image-size/large?v=v2&amp;amp;px=999" role="button" title="14233.png" alt="14233.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Output Collection:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14234.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14397i6906E81A77C1F7AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="14234.png" alt="14234.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vikrant Sharma&lt;BR /&gt;Senior Solution Designer&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 06:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67003#M19608</guid>
      <dc:creator>VikrantSharma</dc:creator>
      <dc:date>2022-05-19T06:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67004#M19609</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;. &lt;A class="user-content-mention" data-sign="@" data-contactkey="b9a3390e-97cb-4df6-b6f4-f385aab2cf99" data-tag-text="@Vikrant Sharma" href="https://community.blueprism.com/network/profile?UserKey=b9a3390e-97cb-4df6-b6f4-f385aab2cf99" data-itemmentionkey="7f4a18f6-1c0a-4881-9185-a185b004e758"&gt;@Vikrant Sharma&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am aware of this action Get collection Fields.&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Get collection Fields &amp;nbsp;&lt;/STRONG&gt;action provides all fields, I can use a loop stage or filter option not a big problem, But looking for a step where it can exact specific field data type&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 06:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67004#M19609</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-05-19T06:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67005#M19610</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;Whenever you interact with any application using Blue Prism, Blue Prism has its own internal methods/code stages of grabbing that data and converting it to a collection with how the data format seems to be. What you are asking is to decipher the way in how Blue Prism is trying to decode those field types which might not be in scope of ours as we can only determine what is the data type once the data has been grabbed by Blue Prism's code stage or any internal coding framework. This ask has to be either handled at the application end or you need to always forcefully cast it to the specific data format once Blue Prism grabs the data for you.&lt;BR /&gt;&lt;BR /&gt;I will shed some light on both of these approaches:&lt;BR /&gt;&lt;BR /&gt;If you want to allow a specific format to be included changes need to be done at the excel side where you can change the formatting of any column and in case of API you will have to change the back end code of the API to always restrict the data types to be of a common format.&lt;BR /&gt;&lt;BR /&gt;If you are at times getting the data as 'Date/DateTime' type of data my suggestion would be to cast the data into a specific type always no matter what type of data you get. You can have a similar collection with the same column name as a text type and just use a calculation stage to forcefully cast it in that way.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;Wonderbotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 06:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67005#M19610</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-05-19T06:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Data type of a filed in a collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67006#M19611</link>
      <description>Hi Dev,&lt;BR /&gt;&lt;BR /&gt;Thanks for our explanation.&lt;BR /&gt;When you say "&lt;SPAN&gt;&lt;STRONG&gt;you need to always forcefully cast it to the specific data format once Blue Prism grabs the data for you&lt;/STRONG&gt;." Sometimes it doesn't work, for example casting a Text into number or Text into a Datetime formats.&lt;BR /&gt;In case of API, I can check with the respective team to be resolved. But it also happened while reading data from Excel to BP on different machines using similar version of BPV6.9 That's why I want to check data type of a specific field before performing any action (like Filter collection-faced issues while filtering field when it text and date type).&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;"just use a calculation stage to forcefully cast it in that way."&amp;nbsp;&lt;/STRONG&gt;I can do it but once datetime field converted to text to perform some actions, the output needs datetime field where am facing issue while casting text to datetime.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 19 May 2022 07:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Data-type-of-a-filed-in-a-collection/m-p/67006#M19611</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-05-19T07:26:00Z</dc:date>
    </item>
  </channel>
</rss>

