<?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 How to convert a text in a Datapill in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3616#M1730</link>
    <description>&lt;P&gt;Hello the Community,&lt;/P&gt;&lt;P&gt;Happy Holidays !&lt;/P&gt;&lt;P&gt;Maybe a simple question but I am stuck...&lt;/P&gt;&lt;P&gt;I have the following response from one of my step of my recipe :&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;{"text-Platinum","choices":[{"text":"\n\&lt;U&gt;n1. &lt;FONT color="#FF0000"&gt;MED001 - Digital Stethoscope - $99.99&lt;/FONT&gt;\n2. &lt;FONT color="#FF0000"&gt;MED002 - Blood Pressure Monitor - $59.99&lt;/FONT&gt;\n3. &lt;FONT color="#FF0000"&gt;MED003 - Disposable Surgical Caps - $9.99&lt;/FONT&gt;&lt;/U&gt;","index":0,"logprobs":null}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What will you recommend to extract the following :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;ParNum&lt;/U&gt; : MED001, MED002, MED003&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;Description&lt;/U&gt; :&amp;nbsp;Digital Stethoscope,&amp;nbsp;Blood Pressure Monitor,&amp;nbsp;Disposable Surgical Caps&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;Price&lt;/U&gt; : $99.99, $99.99,$9.99&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;and be able to have it in a DataPill I can use in the following steps of my recipe.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance for your help,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Happy New year,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thierry&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 18:31:33 GMT</pubDate>
    <dc:creator>tco</dc:creator>
    <dc:date>2022-12-27T18:31:33Z</dc:date>
    <item>
      <title>How to convert a text in a Datapill</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3616#M1730</link>
      <description>&lt;P&gt;Hello the Community,&lt;/P&gt;&lt;P&gt;Happy Holidays !&lt;/P&gt;&lt;P&gt;Maybe a simple question but I am stuck...&lt;/P&gt;&lt;P&gt;I have the following response from one of my step of my recipe :&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;{"text-Platinum","choices":[{"text":"\n\&lt;U&gt;n1. &lt;FONT color="#FF0000"&gt;MED001 - Digital Stethoscope - $99.99&lt;/FONT&gt;\n2. &lt;FONT color="#FF0000"&gt;MED002 - Blood Pressure Monitor - $59.99&lt;/FONT&gt;\n3. &lt;FONT color="#FF0000"&gt;MED003 - Disposable Surgical Caps - $9.99&lt;/FONT&gt;&lt;/U&gt;","index":0,"logprobs":null}}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What will you recommend to extract the following :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;ParNum&lt;/U&gt; : MED001, MED002, MED003&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;Description&lt;/U&gt; :&amp;nbsp;Digital Stethoscope,&amp;nbsp;Blood Pressure Monitor,&amp;nbsp;Disposable Surgical Caps&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;U&gt;Price&lt;/U&gt; : $99.99, $99.99,$9.99&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;and be able to have it in a DataPill I can use in the following steps of my recipe.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advance for your help,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Happy New year,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thierry&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 18:31:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3616#M1730</guid>
      <dc:creator>tco</dc:creator>
      <dc:date>2022-12-27T18:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a text in a Datapill</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3636#M1731</link>
      <description>&lt;P&gt;Hi Thierry,&lt;/P&gt;&lt;P&gt;Using my new best friend (ChatGPT) it came up with a RegEx "\bMED\w+"&lt;BR /&gt;which can extract the values starting with MED from the text.&amp;nbsp; Having not used RegEx in Workato I had a quick try by following the Workato&amp;nbsp; documentation and it didn't work.&lt;/P&gt;&lt;P&gt;I'm out of time to experiment today but the other approach I would take with that particular text is to parse it as JSON (or just deal with it as a string) and split it using the newline (\n), then iterate over it and look for the location of ".M" then use that to get a substring of the MED value.&amp;nbsp; Obviously there's some nuance in how to do that but that's a general approach.&lt;/P&gt;&lt;P&gt;Having said that, the best bet might be to get someone who knows RegEx to advise how to implement it in Workato using that expression&amp;nbsp;"\bMED\w+".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 03:15:34 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3636#M1731</guid>
      <dc:creator>dcornwell</dc:creator>
      <dc:date>2023-01-06T03:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a text in a Datapill</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3642#M1734</link>
      <description>&lt;P&gt;Just to add 2 cents, this is also great for fiddling around with regex: &lt;A href="https://regexr.com/" target="_blank"&gt;https://regexr.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 18:29:02 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3642#M1734</guid>
      <dc:creator>arturgm</dc:creator>
      <dc:date>2023-01-11T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a text in a Datapill</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3660#M1739</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/1000"&gt;@tco&lt;/a&gt;! Did either of the suggestions provided work for you? Would love to get an update if you have one!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 14:47:33 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/how-to-convert-a-text-in-a-datapill/m-p/3660#M1739</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2023-01-17T14:47:33Z</dc:date>
    </item>
  </channel>
</rss>

