<turbo-stream action="update" target="wiki_card"><template>
<h1>Filtering with salesforce.com</h1>
<h2>Overview</h2>
<ul>
<li>Filtering with Salesforce.com is much like SQL. It is using salesforce.com's query language called SOQL.</li>
<li>You can find more information in the "Force.com Web Services API Developer's Guide" - search for SOQL.</li>
</ul>
<p>&nbsp;</p>
<h2>Examples:</h2>
<ul>
<li>Filter on Name equal to a specific text:</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>Name</td>
<td>Name = 'MYSALE'</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Filter on a field being empty (null):</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>rapidi__Transferred__c</td>
<td>rapidi__Transferred__c = null</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Filter that returns Accounts that have BillingState either California or New York.</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>BillingState</td>
<td>BillingState IN ('California', 'New York')</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Filter that return anything newer than the date specified:</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>CreatedDate</td>
<td>CreatedDate &gt; 2005-10-08T01:02:03Z</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Filter that return anything created yesterday:</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>CreatedDate</td>
<td>CreatedDate = YESTERDAY</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Filter that return anything created during the last week:</li>
</ul>
<blockquote>
<table border="0">
<thead>
<tr>
<td><span><strong><span>FIELD NAME</span></strong></span></td>
<td><span><strong><span>FILTER</span></strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>CreatedDate</td>
<td>CreatedDate &gt; LAST_WEEK</td>
</tr>
</tbody>
</table>
</blockquote>
<p>&nbsp;</p>
<p><strong><em>Please Note: If you are using Source Control when reading from Salesforce.com then all filters are handled by Rapidi as CheckFilter - see <a href="/wiki/filtering_with_checkfilters" data-turbo="true" data-turbo-stream="true" data-controller="wiki" data-action="wiki#updateUrl">Filtering with CheckFilters</a></em></strong></p>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template> - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
