<?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: Help with Formula- in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3128#M1460</link>
    <description>&lt;P&gt;Hi Tracy Stack,&lt;/P&gt;&lt;P&gt;You can use ternary conditions for this logic "Condition?expression 1: expression 2"&lt;/P&gt;&lt;P&gt;When using Datapills it can be defined as:- "Datapill1.present? ? exp1:exp2".&lt;/P&gt;&lt;P&gt;Docs Link: &lt;A href="https://community.workato.com/links?url=https%3A%2F%2Fdocs.workato.com%2Fformulas%2Fconditions.html%23conditionals" target="_blank" rel="noopener noreferrer"&gt;https://docs.workato.com/formulas/conditions.html#conditionals&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Jul 2022 12:28:53 GMT</pubDate>
    <dc:creator>nikhitha-thatra</dc:creator>
    <dc:date>2022-07-13T12:28:53Z</dc:date>
    <item>
      <title>Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3121#M1453</link>
      <description>&lt;P&gt;Hello! I'm struggling with an error in one of my formulas 'Formula received a nil value: undefined method `+' for nil:NilClass' After doing some research, I was thinking that using "&amp;amp;" for safe navigation, but still getting the above error. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;This is the formula that I am using:&lt;/P&gt;&lt;P&gt;[DATAPILL1]&amp;amp;.presence ? lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2) ["FIELD_NAME"]+[DATAPILL2]: [DATAPILL3]&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;the Datapill1 that I'm using to look for the Lookup Table, comes in blank or null every once in awhile. In that case, I want to populate it with Datapill3. However, I am receiving the error rather than the data being replaced with Datapill3 which should be the second condition. Any advise would be great. &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 01:05:07 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3121#M1453</guid>
      <dc:creator>tstack</dc:creator>
      <dc:date>2022-07-09T01:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3122#M1454</link>
      <description>&lt;P&gt;Try adding the &amp;amp; to your Lookup function as well. This would apply safe navigation to both calls.  &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 01:44:03 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3122#M1454</guid>
      <dc:creator>jeff-allen</dc:creator>
      <dc:date>2022-07-09T01:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3123#M1455</link>
      <description>&lt;P&gt;I don't think you can have 2 "ELSE" statements. You would need to use a different formula such as elsif to carry this out.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2022 05:27:57 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3123#M1455</guid>
      <dc:creator>rachelnatik</dc:creator>
      <dc:date>2022-07-09T05:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3124#M1456</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV dir="ltr"&gt;
&lt;DIV dir="ltr"&gt;Create a variable, and if datapil 1 is not present set it to 0.&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;Then use that variable in the formula.&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;&lt;BR /&gt;
&lt;/DIV&gt;
&lt;DIV dir="ltr"&gt;On top of that keep a reference of the received null values and use that to update the source.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="ms-outlook-mobile-signature"&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;/DIV&gt;
Get &lt;A href="https://community.workato.com/links?url=https%3A%2F%2Faka.ms%2Fo0ukef" target="_blank" rel="noopener noreferrer"&gt;Outlook for iOS&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 09 Jul 2022 19:59:47 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3124#M1456</guid>
      <dc:creator>roland-daane</dc:creator>
      <dc:date>2022-07-09T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3125#M1457</link>
      <description>&lt;P&gt;Hi &lt;A href="https://systematic.workato.com/workato-migration/users/2586345"&gt;Tracy Stack&lt;/A&gt;! Did any of these suggestions work for you? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 19:05:10 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3125#M1457</guid>
      <dc:creator>meghan-legaspi</dc:creator>
      <dc:date>2022-07-11T19:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3126#M1458</link>
      <description>&lt;P&gt;I couldn't get any of the above suggestions to work. Basically, I'm trying to use a conditional with a lookup table. I was able to work around it by creating another lookup table with the data that I need rather than using the formula.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 22:45:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3126#M1458</guid>
      <dc:creator>tstack</dc:creator>
      <dc:date>2022-07-11T22:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3127#M1459</link>
      <description>&lt;P&gt;Hello Tracy,&lt;/P&gt;&lt;P&gt;   Depending on where the data is coming from that you are using in your lookup table, you may want to condider using Collections.  We use Collections for some of our more complex lookups and joins. It allows you to work with the various data sources as SQL tables,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2022 23:54:24 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3127#M1459</guid>
      <dc:creator>jeff-allen</dc:creator>
      <dc:date>2022-07-11T23:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3128#M1460</link>
      <description>&lt;P&gt;Hi Tracy Stack,&lt;/P&gt;&lt;P&gt;You can use ternary conditions for this logic "Condition?expression 1: expression 2"&lt;/P&gt;&lt;P&gt;When using Datapills it can be defined as:- "Datapill1.present? ? exp1:exp2".&lt;/P&gt;&lt;P&gt;Docs Link: &lt;A href="https://community.workato.com/links?url=https%3A%2F%2Fdocs.workato.com%2Fformulas%2Fconditions.html%23conditionals" target="_blank" rel="noopener noreferrer"&gt;https://docs.workato.com/formulas/conditions.html#conditionals&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jul 2022 12:28:53 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3128#M1460</guid>
      <dc:creator>nikhitha-thatra</dc:creator>
      <dc:date>2022-07-13T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3129#M1461</link>
      <description>&lt;P&gt;If you have multiple conditions to check, you can use ternary conditions inside a ternary. &lt;/P&gt;&lt;P&gt;Condition1?(condition2?exp1:exp2):exp3&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 13:11:49 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3129#M1461</guid>
      <dc:creator>nikhitha-thatra</dc:creator>
      <dc:date>2022-07-13T13:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3130#M1462</link>
      <description>&lt;P&gt;From the error message it looks like &lt;STRONG&gt;lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2])&lt;/STRONG&gt; this returns null(blank) value&lt;/P&gt;&lt;P&gt;1. Make sure that you have data for lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2])&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. Add the quotes and contact before and after lookup to convert expression result to string. New Redefined expression should be like following:&lt;/P&gt;&lt;P&gt;[DATAPILL1]&amp;amp;.presence ? "" + lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2]) ["FIELD_NAME"] + "" + [DATAPILL2] + "" : "" + [DATAPILL3] + ""&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;3. Add variable with following expression and use this variable in your expression:&lt;/P&gt;&lt;P&gt;Variable Temp1:&lt;/P&gt;&lt;P&gt;(lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2]) ["FIELD_NAME"]).present? ? (lookup("TABLE_NAME", "FIELD_NAME": [DATAPILL2]) ["FIELD_NAME"]) : ""&lt;/P&gt;&lt;P&gt;Your expression will be:&lt;/P&gt;&lt;P&gt;[DATAPILL1]&amp;amp;.present? ? [Variable:Temp1] + [DATAPILL2] : [DATAPILL3]&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 19:43:56 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3130#M1462</guid>
      <dc:creator>sanjay-rathod</dc:creator>
      <dc:date>2022-07-13T19:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Formula-</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3131#M1463</link>
      <description>&lt;P&gt;Let me know if it works &amp;amp; satisfies your usecase or not.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 19:53:23 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/help-with-formula/m-p/3131#M1463</guid>
      <dc:creator>nikhitha-thatra</dc:creator>
      <dc:date>2022-07-13T19:53:23Z</dc:date>
    </item>
  </channel>
</rss>

