<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search() function Issue</title><link>https://community.appian.com/discussions/f/integrations/10639/search-function-issue</link><description>Hi 
 I&amp;#39;m new to appian.Please help me out of this problem 
 &amp;quot;Requirement: When I receive an email with subject as &amp;quot;Hello World&amp;quot; I should delete the process. 
 So I applied a condition in xor node like &amp;quot; search(&amp;quot;Hello World&amp;quot;,pv!incomingSubject)&amp;gt;0&amp;quot; 
 If</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46461?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 07:16:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6507cf3-605d-484c-a018-0ef3456c811a</guid><dc:creator>nagapriyar</dc:creator><description>Hi aloks176 Thanks for your comments will attach the snippet&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46460?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 07:14:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:793cf3d6-8210-4fd0-8a00-46a6a1c53f57</guid><dc:creator>nagapriyar</dc:creator><description>Harshav Thanks  Surely will try now&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46457?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:55:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e6eea27b-b340-42f3-b24e-f82ac8028422</guid><dc:creator>harshav</dc:creator><description>Or else you can also call the values which you wanted to search from a pv and that pv can also be split and used in wherecontains&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46456?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:54:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31aaa4bd-3d8b-40ba-b821-588de211f424</guid><dc:creator>harshav</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
Can you use this code and check&lt;br /&gt;
&lt;br /&gt;
with(&lt;br /&gt;
  local!a:split(&amp;quot;XXXX YYYYYYY AAAAA BBBBBBBBBBBB: LMI Aerospace (USA): Hello World QQQQQQQQ SAMPLE SUBECT LINE&amp;quot;,&amp;quot; &amp;quot;),&lt;br /&gt;
  local!b:wherecontains({&amp;quot;Hello&amp;quot;,&amp;quot;World&amp;quot;},local!a),&lt;br /&gt;
  local!b)&lt;br /&gt;
&lt;br /&gt;
I am trying to split all the data with split and making it as an array and finding the indices in the array,&lt;br /&gt;
&lt;br /&gt;
count the index values, if the index value count is &amp;gt;0 then route it to delete process.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46453?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:29:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fc66d79-145e-45c0-8532-fe4e027d398a</guid><dc:creator>aloks0189</dc:creator><description>Hi &lt;a href="/members/nagapriyar"&gt;nagapriyar&lt;/a&gt; If possible, can you attach the snippet of Process Variable of running instance, because the same configuration is working here for me in both the cases, and of course generally that should work&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46452?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:28:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9258e6dc-5212-497a-8812-b303255b5673</guid><dc:creator>nagapriyar</dc:creator><description>No newline characters in the subject&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46451?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:25:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:814281fb-9509-495b-9607-28836c20fc1c</guid><dc:creator>ashish.deshmukh</dc:creator><description>This might happen if there are new line characters in incoming text. Please check if that is causing any issue.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46450?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2017 06:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7e9d953-9723-4583-8b6d-01a5651b8ffd</guid><dc:creator>nagapriyar</dc:creator><description>pv!incomingSubject contains full subject line(&amp;quot;XXXX YYYYYYY AAAAA BBBBBBBBBBBB: LMI Aerospace (USA): Hello World QQQQQQQQ SAMPLE SUBECT LINE&amp;quot;) but when it passes to  search(&amp;quot;Hello World&amp;quot;,pv!incomingSubject)&amp;gt;0     it returns false.&lt;br /&gt;
 &lt;br /&gt;
But when the same subject is applied like this search(&amp;quot;Hello World&amp;quot;,&amp;quot;XXXX YYYYYYY AAAAA BBBBBBBBBBBB: LMI Aerospace (USA): Hello World QQQQQQQQ SAMPLE SUBECT LINE&amp;quot;)&amp;gt;0 is returning true&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Search() function Issue</title><link>https://community.appian.com/thread/46435?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2017 14:27:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0fdbf672-dc14-4806-a254-42d77033428b</guid><dc:creator>Mike Schmitt</dc:creator><description>Can you post what the exact value of pv!incomingSubject is when the subject exceeds 70 characters?  It seems almost like some truncation is occurring but there&amp;#39;s not enough detail provided to tell one way or the other.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>