<?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: Update Picklist Field Using Formula with SEARCH function in DemandTools</title>
    <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2362#M1278</link>
    <description>&lt;P&gt;I updated the formula to this, and this worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(ISNUMBER(SEARCH("Cancelled",${Name},1)),"Cancelled","Fulfilled")&lt;/P&gt;&lt;P&gt;However, it does seem you can't do any number comparison's in an IF statement, which is dissapointing.&amp;nbsp; Is there another way to accomplish something like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DemandTools - Number Comparision Formula.jpg" style="width: 865px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/662i2C8DED2332561004/image-size/large?v=v2&amp;amp;px=999" role="button" title="DemandTools - Number Comparision Formula.jpg" alt="DemandTools - Number Comparision Formula.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2024 16:01:03 GMT</pubDate>
    <dc:creator>Murphybp79</dc:creator>
    <dc:date>2024-10-29T16:01:03Z</dc:date>
    <item>
      <title>Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2353#M1271</link>
      <description>&lt;P&gt;I'm using the Modify module to try and update a new picklist field I've created with a formula.&amp;nbsp; I want to select a certain value based on if I can find the word "Cancelled" in the name of the record. I'm trying to use an IF with SEARCH, but I keep getting errors, and I can't find any documentation on how to use SEARCH in DemandTools.&amp;nbsp; I've created this formula in Excel and it worked, but it doesn't work in DemandTools.&amp;nbsp; Anyone know if this is possible, and where my formula may be off?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(SEARCH('Cancelled',${Name},1)&amp;gt;0,'Cancelled','Fulfilled')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 22:23:37 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2353#M1271</guid>
      <dc:creator>Murphybp79</dc:creator>
      <dc:date>2024-10-28T22:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2359#M1276</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/134"&gt;@Murphybp79&lt;/a&gt;&amp;nbsp;- I believe your formula just needs a slight adjustment:&lt;/P&gt;
&lt;P&gt;IF(ISNUMBER(SEARCH('Cancelled',${Name},1)&amp;gt;0,'Cancelled','Fulfilled')&lt;/P&gt;
&lt;P&gt;ISNUMBER is a true or false – I use it in front of search as search counts something in the string. SEARCH returns the number of times it is there.&amp;nbsp;As long as it is a number, that means the searched item exists in the string and you get a TRUE from ISNUMBER.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 15:42:34 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2359#M1276</guid>
      <dc:creator>Pugs_Validity</dc:creator>
      <dc:date>2024-10-29T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2360#M1277</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/1010"&gt;@Pugs_Validity&lt;/a&gt;&amp;nbsp;I have the comparision of "&amp;gt;0".&amp;nbsp; That should also return a TRUE/FALSE.&amp;nbsp; So are you saying that DemandTools can't handle evaulating a greater than/less than comparison in formulas?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 15:47:32 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2360#M1277</guid>
      <dc:creator>Murphybp79</dc:creator>
      <dc:date>2024-10-29T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2362#M1278</link>
      <description>&lt;P&gt;I updated the formula to this, and this worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(ISNUMBER(SEARCH("Cancelled",${Name},1)),"Cancelled","Fulfilled")&lt;/P&gt;&lt;P&gt;However, it does seem you can't do any number comparison's in an IF statement, which is dissapointing.&amp;nbsp; Is there another way to accomplish something like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DemandTools - Number Comparision Formula.jpg" style="width: 865px;"&gt;&lt;img src="https://mycommunity.validity.com/t5/image/serverpage/image-id/662i2C8DED2332561004/image-size/large?v=v2&amp;amp;px=999" role="button" title="DemandTools - Number Comparision Formula.jpg" alt="DemandTools - Number Comparision Formula.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 16:01:03 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2362#M1278</guid>
      <dc:creator>Murphybp79</dc:creator>
      <dc:date>2024-10-29T16:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2364#M1280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/134"&gt;@Murphybp79&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for reaching out.&amp;nbsp; Love to see people using Modify's Formula action - one of my faves.&amp;nbsp; The reason why you're geting a syntax error is because SEARCH returns an error if there are no matches.&amp;nbsp; We do allow comparing a returned number, but in this case you will not always get a number.&amp;nbsp; The IF(ISNUMBER(SEARCH is my best approach for finding search terms in a string, but you could use this as well:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IF(
    IFERROR(SEARCH("Cancelled", ${Name})) &amp;gt; 0,
    "Cancelled",
    "Fulfilled"
)&lt;/LI-CODE&gt;&lt;P&gt;"If find_text is not found, the #VALUE! error value is returned."&amp;nbsp; Article can be found &lt;A href="https://support.microsoft.com/en-us/office/search-function-f79ef0b8-0991-4fc1-93b0-627f019a69e3" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp; I tired the original formula in excel and received the #VALUE! error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed single quotes in the original formula - be sure to use double quotes in instances like these.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 19:01:20 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2364#M1280</guid>
      <dc:creator>AnthonyValidity</dc:creator>
      <dc:date>2024-10-29T19:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2366#M1282</link>
      <description>&lt;P&gt;&lt;a href="https://mycommunity.validity.com/t5/user/viewprofilepage/user-id/19"&gt;@AnthonyValidity&lt;/a&gt;&amp;nbsp;appreicate the info. Can you explain why my second example, which would not return any error, doesn't work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 19:18:24 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2366#M1282</guid>
      <dc:creator>Murphybp79</dc:creator>
      <dc:date>2024-10-29T19:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2367#M1283</link>
      <description>&lt;P&gt;Sorry, just saw the remark about double quotes.&amp;nbsp; I tried that and it does work.&lt;/P&gt;&lt;P&gt;So essentially, where Excel will allow the formula even if it returns #VALUE! error, DemandTools will not.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 23:17:25 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2367#M1283</guid>
      <dc:creator>Murphybp79</dc:creator>
      <dc:date>2024-11-04T23:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2368#M1284</link>
      <description>&lt;P&gt;I think my question is much simpler.&amp;nbsp; How do I update text values to a picklist field?&amp;nbsp; I used Import/Update, uploaded my file of Account ID and Industry, selected 'Always Update', Preview.&amp;nbsp; The result is 'Import 0 Account records.'&amp;nbsp; The word Import (not Update) is a little scary - but regardless, the result = 0.&amp;nbsp; Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 17:19:59 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2368#M1284</guid>
      <dc:creator>PeteIntradiem</dc:creator>
      <dc:date>2024-10-30T17:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update Picklist Field Using Formula with SEARCH function</title>
      <link>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2369#M1285</link>
      <description>&lt;P&gt;I've solved it.&amp;nbsp; I just used Account Name as the Mapped field instead of Account ID.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 17:44:48 GMT</pubDate>
      <guid>https://mycommunity.validity.com/t5/demandtools/update-picklist-field-using-formula-with-search-function/m-p/2369#M1285</guid>
      <dc:creator>PeteIntradiem</dc:creator>
      <dc:date>2024-10-30T17:44:48Z</dc:date>
    </item>
  </channel>
</rss>

