<turbo-stream action="update" target="wiki_99_subpage_148_info"><template>
<h1>BEFORE(data,substring);</h1><p>Using this function, the data before the specified substring will be returned. The result is returned as a text.</p><p>&nbsp;</p><p><strong>Examples:</strong></p><p>We have a field called "<strong>Company Name</strong>" with the value '<strong>Rapidi A/S</strong>'<br><br><code>##BEFORE("Company Name", ' ')</code><br><br>The formula will return '<strong>Rapidi</strong>'.<br><br><code>##BEFORE("Company Name", 'Rapidi')<br></code><br>The formula will return <strong>NULL</strong> because there is no value before 'Rapidi'.<br><br><code>##BEFORE("Company Name", 'A/S')</code><br><br>The formula will return '<strong>Rapidi</strong>' with a blank at the end. <br><br><code>##DBLOOKUP('DESTDS','Account','Customer_No__c',</code><strong><code>BEFORE("DimensionDisplayValue",'-')</code></strong><code>,'Id'))</code><br><br>The nested formula will retrieve the value that is stored before the first minus sign <strong>-</strong> in the field '<strong>DimensionDisplayValue</strong>'. If the vale retrieved equals <strong>Customer_No__c</strong>, then the ID will be retrieved. &nbsp;</p>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
