From Bright Pattern Documentation
Jump to: navigation, search
(Created page with "<translate>= Searching for a Contact Using the Salesforce.com Search Block= This section describes the various ways to use scenario blocks when searching for a contact. For mo...")
 
(Marked this version for translation)
Line 1: Line 1:
<translate>= Searching for a Contact Using the Salesforce.com Search Block=
+
<translate>= Searching for a Contact Using the Salesforce.com Search Block= <!--T:1-->
 
This section describes the various ways to use scenario blocks when searching for a contact. For more information on scenario blocks, see the ''Scenario Builder Reference Guide''.
 
This section describes the various ways to use scenario blocks when searching for a contact. For more information on scenario blocks, see the ''Scenario Builder Reference Guide''.
  
  
== How to Clean the ANI Using Set Variable ==
+
== How to Clean the ANI Using Set Variable == <!--T:2-->
 
Use the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block with the following properties to clean the ANI from any meaningless symbols.
 
Use the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block with the following properties to clean the ANI from any meaningless symbols.
  
 +
<!--T:3-->
 
* '''Variable Name:''' ANI
 
* '''Variable Name:''' ANI
 
* '''Value:'''
 
* '''Value:'''
Line 11: Line 12:
  
  
 +
<!--T:4-->
 
[[File:sfdc-integration-guide-image34.png|thumb|800px|center|]]
 
[[File:sfdc-integration-guide-image34.png|thumb|800px|center|]]
  
  
== How to Set a Value for the SFDCANI Using Set Variable ==
+
== How to Set a Value for the SFDCANI Using Set Variable == <!--T:5-->
 
Use the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block with the following properties to set a value for the SFDCANI.
 
Use the [[scenario-builder-reference-guide/SetVariable|Set Variable]] block with the following properties to set a value for the SFDCANI.
  
 +
<!--T:6-->
 
* '''Variable Name:''' SFDCANI
 
* '''Variable Name:''' SFDCANI
 
* '''Value:'''
 
* '''Value:'''
Line 22: Line 25:
  
  
 +
<!--T:7-->
 
[[File:sfdc-integration-guide-image35.png|thumb|800px|center|]]
 
[[File:sfdc-integration-guide-image35.png|thumb|800px|center|]]
  
  
== How to Use the Salesforce.com Search Block ==
+
== How to Use the Salesforce.com Search Block == <!--T:8-->
 
Use the [[scenario-builder-reference-guide/Salesforce.comSearch|Salesforce.com Search]] block with the following SOQL query:
 
Use the [[scenario-builder-reference-guide/Salesforce.comSearch|Salesforce.com Search]] block with the following SOQL query:
  
  SELECT Id, Name, Account.Id FROM Contact WHERE Phone LIKE '$(SFDCANI)' or MobilePhone LIKE '$(SFDCANI)'
+
  <!--T:9-->
 +
SELECT Id, Name, Account.Id FROM Contact WHERE Phone LIKE '$(SFDCANI)' or MobilePhone LIKE '$(SFDCANI)'
  
  
 +
<!--T:10-->
 
[[File:SFDC-Search-Block-50.PNG|650px|thumbnail|center|Salesforce.com Search properties]]
 
[[File:SFDC-Search-Block-50.PNG|650px|thumbnail|center|Salesforce.com Search properties]]
  

Revision as of 01:27, 15 October 2019

• 日本語
• 5.19 • 5.3 • 5.8

<translate>= Searching for a Contact Using the Salesforce.com Search Block= This section describes the various ways to use scenario blocks when searching for a contact. For more information on scenario blocks, see the Scenario Builder Reference Guide.


How to Clean the ANI Using Set Variable

Use the Set Variable block with the following properties to clean the ANI from any meaningless symbols.

  • Variable Name: ANI
  • Value:
=replace("$(item.from)","^\\+*1","","")'


Sfdc-integration-guide-image34.png


How to Set a Value for the SFDCANI Using Set Variable

Use the Set Variable block with the following properties to set a value for the SFDCANI.

  • Variable Name: SFDCANI
  • Value:
=replace("$(ANI)","(\\d{3})(\\d{3})(\\d{4})","%\\1%\\2%\\3%","")


Sfdc-integration-guide-image35.png


How to Use the Salesforce.com Search Block

Use the Salesforce.com Search block with the following SOQL query:

SELECT Id, Name, Account.Id FROM Contact WHERE Phone LIKE '$(SFDCANI)' or MobilePhone LIKE '$(SFDCANI)'


Salesforce.com Search properties



</translate>

< Previous | Next >