<?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: Workato If formula in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10427#M4153</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12109"&gt;@habeebkhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s how I usually handle this scenario — using&amp;nbsp;ternary operator&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt; .present?, skip, and smart_join("\n") to build the description dynamically based on available input. This avoids using multiple IF steps and keeps everything within a single formula.&lt;/P&gt;&lt;P&gt;It checks each field, adds it only if present, and neatly joins them with line breaks. Efficient and clean!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-13 162442.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2210i9BC2FD326FCF8EDF/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-13 162442.png" alt="Screenshot 2025-07-13 162442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Output:&lt;BR /&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-07-13 162400.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2212iF5F9C59D56E79439/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-13 162400.png" alt="Screenshot 2025-07-13 162400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My input for the above output:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-07-13 162428.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2213i0A99D9C11E35008D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-13 162428.png" alt="Screenshot 2025-07-13 162428.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jul 2025 11:08:10 GMT</pubDate>
    <dc:creator>Bhagya_pola</dc:creator>
    <dc:date>2025-07-13T11:08:10Z</dc:date>
    <item>
      <title>Workato If formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10415#M4148</link>
      <description>&lt;P&gt;Hi everyone.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I had a query with regards to a formula. I have a scenario&amp;nbsp;where on a Wrike form, I have 4 fields that I get as a user input. Below are the fields:&lt;BR /&gt;&lt;BR /&gt;1. Goal&lt;BR /&gt;2. Campaign Purpose&lt;/DIV&gt;&lt;DIV&gt;3. Target Audience&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;4. Value Proposition&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would like to concatenate all of these if the user input exists for it into a 'Description' field on the Campaign Object in SFDC.&amp;nbsp;&lt;SPAN&gt;So basically if 'Goal' is present it displays as below:&lt;BR /&gt;&lt;BR /&gt;Goal: and then its corresponding user input from the wrike form.&lt;BR /&gt;&lt;BR /&gt;If 'Goal' is empty, then it&amp;nbsp;skips it. Similarly for 'Campaign Purpose', 'Target Audience' and 'Value Proposition' all concatenated under the same 'Description' field.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have an idea how I can write a formula for this? I tried using Chatgpt as well but it didn't give me the correct formula. I am currently using IF else in the Steps, but this consumes 10 extra tasks. I would like to write a If else formula instead in the 'Description' field.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 12 Jul 2025 00:17:32 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10415#M4148</guid>
      <dc:creator>habeebkhan</dc:creator>
      <dc:date>2025-07-12T00:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Workato If formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10417#M4149</link>
      <description>&lt;P&gt;Your request is a little unclear but I get the idea.&lt;/P&gt;&lt;P&gt;This part is unclear:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If 'Goal' is empty, &lt;STRONG&gt;then it&amp;nbsp;skips it.&lt;/STRONG&gt; Similarly for 'Campaign Purpose', 'Target Audience' and 'Value Proposition' all concatenated under the same 'Description' field.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Do you mean "If Goal is empty, skip the entire concatenation step and do nothing"?&amp;nbsp;Or do you mean, "The formula only concatenates the values that are present"?&lt;/P&gt;&lt;P&gt;You can concatenate the values like this. The smart_join method will skip null/blank values. You can use any delimiter characters you want in smart_join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[ Goal, Campaign, Target, Value].smart_join(" - ")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to do this&amp;nbsp;conditionally based on the presence of Goal and Campaign, you can use the below.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;Goal.present? &amp;amp;&amp;amp; Campaign.present? ? [ Goal, Campaign, Target, Value].smart_join(" - ") : ""&lt;/LI-CODE&gt;&lt;P&gt;The above formula is called a&amp;nbsp;&lt;STRONG&gt;ternary operator&lt;/STRONG&gt; which a really fancy way of saying "minimalist if statement" which is also a really fancy way of saying "if". It's used constantly in Workato. The basic format is:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[boolean] ? [result if true] : [result if false]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 04:11:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10417#M4149</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2025-07-12T04:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workato If formula</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10427#M4153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/12109"&gt;@habeebkhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s how I usually handle this scenario — using&amp;nbsp;ternary operator&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt; .present?, skip, and smart_join("\n") to build the description dynamically based on available input. This avoids using multiple IF steps and keeps everything within a single formula.&lt;/P&gt;&lt;P&gt;It checks each field, adds it only if present, and neatly joins them with line breaks. Efficient and clean!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-07-13 162442.png" style="width: 999px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2210i9BC2FD326FCF8EDF/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-07-13 162442.png" alt="Screenshot 2025-07-13 162442.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Output:&lt;BR /&gt;&lt;/STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-07-13 162400.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2212iF5F9C59D56E79439/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-13 162400.png" alt="Screenshot 2025-07-13 162400.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My input for the above output:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2025-07-13 162428.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/2213i0A99D9C11E35008D/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-07-13 162428.png" alt="Screenshot 2025-07-13 162428.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 11:08:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/workato-if-formula/m-p/10427#M4153</guid>
      <dc:creator>Bhagya_pola</dc:creator>
      <dc:date>2025-07-13T11:08:10Z</dc:date>
    </item>
  </channel>
</rss>

