Salesforce コミュニティでは、Shared Activities で LastActivityDate 項目がすべての取引先責任者に対して更新されないことが周知されています。これは既知の制限事項です。
Salesforce では、Shared Activities を使用して 1 つのタスクまたはイベントに複数の取引先責任者を関連付けることができます。ただし、WhoId 項目に指定されている主取引先責任者の LastActivityDate 項目のみが更新されます。副取引先責任者については、アクティビティに関連付けられ、アクティビティタイムラインに表示されている場合であっても、LastActivityDate 項目は更新されません。
Salesforce のデータモデルでは、アクティビティの関連付けが特定の仕組みで処理されており、それによりこの制限が発生します。WhoId 項目は、1 人の取引先責任者またはリードのみにリンクされます。追加の取引先責任者は ActivityRelation オブジェクトを介して関連付けることができます。ただし、LastActivityDate 項目では、これらの副次的な関連付けは考慮されません。
この制限に対して、すぐに利用できる標準の解決策はありません。ただし、お客様は次の回避策を利用できます。
たとえば、MostRecentActivityDate__c などのカスタム項目を作成します。
フロー、スケジュール済みジョブ、Apex トリガーを使用して、次の操作を行います。
ActivityRelation オブジェクトからデータを読み取ります。
WhoId に関係なく、関連するアクティビティの最新の ActivityDate で、そのカスタム項目を更新します。
004637111

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.