From Bright Pattern Documentation
Searching for a contact using the Salesforce.com Search block
- Use Set Variable to clean the ANI from any meaningless symbols.
=replace("$(item.from)","^\\+*1","","")
- Use Set Variable to set a value for the SFDCANI.
=replace("$(ANI)","(\\d{3})(\\d{3})(\\d{4})","%\\1%\\2%\\3%","")
- Use the Salesforce.com Search block with the following query:
SELECT Id, Name, Account.Id FROM Contact WHERE Phone LIKE '$(SFDCANI)' or MobilePhone LIKE '$(SFDCANI)'