Module exposing: FlattenedFieldNameFromCompoundField, flattenedFromAddressCompound, addressCompoundPrefix
// Source: https://github.com/amp-labs/connectors | License: MIT | Copyright 2024 Onset Labs, Inc // Provided via justclaw.it.com; keep this notice with the code. package compoundfields import "strings" // FlattenedFieldNameFromCompoundField returns the flattened field name // of a field received in a CDC change event. // nolint:lll // See https://developer.salesforce.com/docs/atlas.en-us.change_data_capture.meta/change_data_capture/cdc_subscribe_compound_fields.htm // // It addressed the following 2 types of compound fields: // 1. Address compound fields: // - "MailingAddress", "Street" -> "MailingStreet" // - "Address", "Street" -> "Street" // // 2. Name fields: // - "Name", "FirstName" -> "FirstName" // - "Name", "LastName" -> "LastName" // - "Name", "Salutation" -> "Salutat ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key