<?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 Extract part of string? in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8466#M3536</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;New to Workato.&lt;/P&gt;&lt;P&gt;I have a requirement to extract the first 500 characters of a string, I tried to do this with a formula but for some reason it's not working:&lt;/P&gt;&lt;P&gt;String.scan(/.{0,500})&lt;/P&gt;&lt;P&gt;The regex seems to be correct, but the end result is empty - not posting anything.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Appreciate any help!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 13:17:10 GMT</pubDate>
    <dc:creator>Nmatan</dc:creator>
    <dc:date>2025-01-07T13:17:10Z</dc:date>
    <item>
      <title>Extract part of string?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8466#M3536</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;New to Workato.&lt;/P&gt;&lt;P&gt;I have a requirement to extract the first 500 characters of a string, I tried to do this with a formula but for some reason it's not working:&lt;/P&gt;&lt;P&gt;String.scan(/.{0,500})&lt;/P&gt;&lt;P&gt;The regex seems to be correct, but the end result is empty - not posting anything.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Appreciate any help!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 13:17:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8466#M3536</guid>
      <dc:creator>Nmatan</dc:creator>
      <dc:date>2025-01-07T13:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extract part of string?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8467#M3537</link>
      <description>&lt;P&gt;Hi Nmata, what about .slice?&amp;nbsp; Like&lt;/P&gt;&lt;P&gt;&amp;lt;your variable&amp;gt;.slice(0,500)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if you need to protect against nulls&lt;/P&gt;&lt;P&gt;&amp;lt;your variable&amp;gt;&amp;amp;.slice(0,500)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 15:03:43 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8467#M3537</guid>
      <dc:creator>mppowe</dc:creator>
      <dc:date>2025-01-07T15:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract part of string?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8476#M3538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11377"&gt;@Nmatan&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Another simple way to achieve this is by using...&lt;BR /&gt;Using []&amp;nbsp;&lt;BR /&gt;Example: &amp;lt;your String&amp;gt;[&lt;STRONG&gt;0..499]&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Meaning: Starting from the index 0 to till 499 characters (&lt;STRONG&gt; total 500 characters&lt;/STRONG&gt;)&lt;BR /&gt;---------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;STRONG&gt;Image_1&lt;/STRONG&gt; : without explicitly converting it&amp;nbsp; to (Data Type: string) gives the result if the input is available.&lt;BR /&gt;&lt;STRONG&gt;Image_2&lt;/STRONG&gt;: With explicitly converting it to (Data Type: string) helps in handling empty data or null values.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="String slicing.PNG" style="width: 625px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1726i0CB190DD2B59959F/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="String slicing.PNG" alt="String slicing.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="String Slice2.PNG" style="width: 634px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/1727iC9CBCC098B30029E/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="String Slice2.PNG" alt="String Slice2.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara A&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 15:22:44 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8476#M3538</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-01-09T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extract part of string?</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8481#M3542</link>
      <description>&lt;P&gt;My apologies&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/3769"&gt;@mppowe&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10420"&gt;@SHIVA&lt;/a&gt;&amp;nbsp;for not responding, it looks like I don't get any notification email when a comment is added? (New to these forums).&lt;/P&gt;&lt;P&gt;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/3769"&gt;@mppowe&lt;/a&gt;&amp;nbsp;I tried that - it seems to have captured the first sentence of the string only.&lt;/P&gt;&lt;P&gt;I should've mentioned, but the string in this case is a long text area field, so it can have multiple lines. So for example, out of the following:&lt;/P&gt;&lt;P&gt;"123412341234&lt;/P&gt;&lt;P&gt;qwerqwerqwer&lt;/P&gt;&lt;P&gt;asdfasdfasdf&lt;/P&gt;&lt;P&gt;zxcvzxcvzxcv"&lt;/P&gt;&lt;P&gt;It only captured:&lt;/P&gt;&lt;P&gt;123412341234&lt;/P&gt;&lt;P&gt;Even though the regex was correct.&lt;/P&gt;&lt;P&gt;However it looks like&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/10420"&gt;@SHIVA&lt;/a&gt;&amp;nbsp;did work - and it captured everything correctly.&lt;/P&gt;&lt;P&gt;Many thanks for both of you for your assistance!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 06:47:04 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/extract-part-of-string/m-p/8481#M3542</guid>
      <dc:creator>Nmatan</dc:creator>
      <dc:date>2025-01-13T06:47:04Z</dc:date>
    </item>
  </channel>
</rss>

