0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Enrich Change Events with Extra Fields

Posted at

ロングテキストは対処外だと思うけど、納得していませんね。

Note

  • Only the TextArea field type is supported and not TextArea (Long), TextArea (Rich), or TextArea (Encrypted).
  • Compound fields, such as Name, Address, and Geolocation fields are supported for enriched fields. You can specify an entire compound field for enrichment but not the individual constituent fields. All non-empty constituent fields are returned as part of the compound field in the enriched change event. For example, you can enrich an event with the Lead Name field. The enriched change event contains the non-empty constituent fields as part of the Name field, including FirstName, MiddleName, LastName, and Suffix.
  • For a relationship field, you can select only the field as an enriched field. You can’t traverse the fields on the related object. The enriched change event contains the ID of the related record. For example, to enrich a contact change event with the ID of the related account, select the Account relationship field as the name of the enriched field for ContactChangeEvent, and not Account.Name. For custom relationship fields, specify the relationship field name with the __c suffix, such as RelField__c.
  • You can add up to 10 enriched fields in each channel member. A compound field counts as one field. This allocation is per channel member. For example, if you have a channel with two channel members, the channel can be enriched with 20 fields total, 10 for each channel member.

数式フィールドも対象外なのはそうだろう。

Formula fields aren't supported for all change events, so that's why they're also not supported for formula fields. Here is the limitation for change data capture in https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_general_considerations.htm:

"No Formula Field Support
Formula fields aren’t supported in Change Data Capture. They aren’t included in change events that are delivered to CometD or Pub/Sub API clients. Formula fields are included in change events in Apex triggers, but they have a value of null regardless of whether they were changed. For information on which fields are included and excluded in a change event, see Change Event Fields."

For event enrichment, the list of field types supported can be found on this page:
https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_enrich_intro.htm

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?