From Bright Pattern Documentation
Jump to: navigation, search
This page is a translated version of the page 5.3:Sfdc-integration-guide/Tutorials/ContactSearch and the translation is 100% complete.
Other languages:
English • ‎日本語
• 5.19 • 5.3 • 5.8

Salesforce.com検索ブロックを使ってコンタクトの検索

このセクションでは、シナリオブロックを使ってコンタクトを検索するさまざまな方法について説明します。シナリオブロックの詳しい情報については、シナリオビルダーリファレンスガイドをご覧ください。


変数の設定を使ってANIをクリーニングする方法

次のプロパティに対して変数の設定ブロックを使って、ANIから不要な記号を削除します。

  • 変数名: ANI
  • 値:
=replace("$(item.from)","^\\+*1","","")'


Sfdc-integration-guide-image34.png


変数の設定を使って、SFDCANIの値を設定する方法

次のプロパティに対して変数の設定ブロックを使って、 SFDCANIの値を設定します。

  • 変数名: SFDCANI
  • 値:
=replace("$(ANI)","(\\d{3})(\\d{3})(\\d{4})","%\\1%\\2%\\3%","")


Sfdc-integration-guide-image35.png


Salesforce.com検索ブロックの使用方法

Salesforce.com検索ブロックを次のSOQLクエリで使います:

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


Salesforce.com 検索プロパティ
< 前へ | 次へ >