LoginSignup
0
0

Lead オブジェクトのまとめ

Last updated at Posted at 2022-12-01

よく使うオブジェクトに戻る

Please check this article.

Email to Lead in Salesforce – Create New Leads with Data Parsed From Emails
https://mailparser.io/blog/salesforce-email-to-lead/

Please check this article.

Email to Lead in Salesforce – Create New Leads with Data Parsed From Emails
https://mailparser.io/blog/salesforce-email-to-lead/

The error "Invalid cross-reference id" is reserved for user and profile IDs. Please make sure while lead conversion the ownerIds are correct.

Do yo have any record owner change process on Account, Contact or Opportunity?

The email notifications for duplicate leads that are generated through the Web-to-Lead feature in Salesforce are part of the Duplicate Management functionality. The standard email template used for these notifications is not directly editable because it is system-generated.

Salesforce の Web-to-Lead 機能を通じて生成される重複リードの電子メール通知は、重複管理機能の一部です。これらの通知に使用される標準の電子メール テンプレートはシステムによって生成されるため、直接編集できません。

Salesforce の Web-to-Lead 機能を通じて生成される重複リードの電子メール通知は、重複管理機能の一部です。これらの通知に使用される標準の電子メール テンプレートはシステムによって生成されるため、直接編集できません。

状況を完了としてマーク

パスの設定のところですかね?
変えられないようです

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Pm2E1SAJ

所有者オブジェクトに「test__c」を追加

[ Select Owner.test__c From Lead]を実行すると以下のエラーが出る。

"No such column 'test__c' on entity 'Name'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names."

手抜きな方法は 数式フィールドを作る

ちゃんとした方法
TYPEOF で多態的なリレーションのオブジェクト種別を指定してあげれば取得できると思います。
https://developer.salesforce.com/docs/atlas.ja-jp.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_typeof.htm

今回ならば下のようにすれば取得できると思います。

SELECT TYPEOF Owner WHEN User THEN test__c END FROM Lead

モバイルアプリでの変換

既知の問題

リードの取引開始時に、リードを既存の取引先責任者に関連付けることができない

リード所有者が変更されたときの標準の確認メールが機能しない

重要な更新から「電子メール通知の抑制から自動フィールド更新を停止する」を有効にする必要があります。解決策は、この過去の KI に由来すると思います: https://success.salesforce.com/issues_view?id=a1p300000008YvIAAU

https://developer.salesforce.com/forums/?id=9060G0000005Sy5QAE

リードの取引開始時のデフォルトの完了予定日を変更したい

探してみるとプロセスビルダーかワークフロールールばかりですね。

英語ですがフローの例があります。
https://help.salesforce.com/s/articleView?id=000385132&type=1

TODAY() + n となっている数式リソースを

ADDMONTHS(DATE(YEAR(TODAY()),MONTH(TODAY()),1),1) -1

とすることで当月末を指定できると思います。

一般的なリレーション項目の考え方から、

リードの取引開始によって取引先が作成・更新
リードの取引開始によって取引先責任者が作成・更新(1の取引先を利用)
リードの取引開始によって商談が作成・更新(1の取引先を利用)
リードの項目を更新(1の取引先と2の取引先責任者、3の商談を利用)
というような順序で動作すると思われるので、

リードの「ConvertedOpportunityId」が入力されている条件を判別する
「Id = ConvertedOpportunityId」の商談の完了予定日を当月末日で更新する

image.png

salutationの編集はClassicから行う。Lightningではできない

リードレコードページから「会社」フィールドを削除したい

Please check this article.

Remove Company requirement from Leads
https://help.salesforce.com/s/articleView?id=000385311&type=1

レポート

キャンペーン単位で活動を管理する場合は、活動が作られたときにフローを使って

活動のWhoIdの先頭の3桁が00Qの時に、キャンペンメンバーのLeadIdをこのリードIdで検索して取得できれば、キャンペーンメンバーのカスタム項目の値を+1するようにします。

レポートではこのカスタム項目がゼロ件のものだけを抽出すれば活動のないリードを抽出できると思います。

リードからアカウントおよび商談への変換プロセスでは、リードの金額を商談オブジェクトの金額に自動的に渡す必要があります。

I'm assuming Amount is a custom field on Lead. If so I do not think you can map this directly to Opportunity.Amount. You can only map custom lead fields to custom account, contact or opporutnity fields.

You could build a work around. Create a field (e.g. "Lead_Amount__c") on Opportunity. Map Lead.Amount__c to Opportunity.Lead_Amount__c. Then build a record triggered flow that will populate Opportunity.Amount based on Opportunity.Lead_Amount__c

金額はLeadのカスタムフィールドであると仮定しています。その場合、これを Opportunity.Amount に直接マッピングすることはできないと思います。カスタム リード フィールドはカスタム取引先、連絡先、または商談フィールドにのみマッピングできます。

回避策を構築することもできます。Opportunity にフィールド (例: 「Lead_Amount__c」) を作成します。Lead.Amount__c を Opportunity.Lead_Amount__c にマッピングします。次に、Opportunity.Lead_Amount__c に基づいて Opportunity.Amount を設定するレコードトリガーフローを構築します。

コンバージョンエラー

最近よく見かける

image.png

image.png

The lead conversion failed because a duplicate value was found for the following fields when saving the new or updated contact or account record. Fields:

何やらエラーメッセージが少々不親切な感じです。同じようなエラーメッセージの質問があります。原因はそれぞれの組織によって違うと思います。ただ解決策を見つけるために開発者コンソールでエラーログを確認して原因を見つけたようです。

tried to convert again and checked the log using Developer Console, read all the logs - this worked!

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000BdMFCSA3

Lead Convert ページのレイアウト

Change the UI from Lightning Experience to Salesforce Classic

  1. Click your Avatar in the top right-hand side of the screen.
  2. Click Switch to Salesforce Classic
  3. And goto same. Object and try to check whether it is showing the buttons or not

アイデア

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0