Is deep create possible in canonical transform?

#1

In the example below, the party field is an entity type, and the party is created in the transform for CanonicalAccount. Is it going to work?

type TransformAccountToContact mixes Contact transforms CanonicalAccount {
party: ~ expression “{“id”:“emailAddress ? emailAddress : accountId”,“postalAddresses”:[{“raw”:“concat(mailingAddressStreet, ‘,’, mailingAddressCity, ‘,’, mailingAddressState, ‘,’, mailingAddressPostalCode, ‘,’, mailingAddressCountry)”,“components”:[{“name”:“mailingAddressStreet”,“types”:[{“id”:”‘street_address’"}]},{“name”:“mailingAddressCity”,“types”:[{“id”:"‘locality’"}]},{“name”:“mailingAddressState”,“types”:[{“id”:"‘administrative_area_level_1’"}],“abbr”:“mailingAddressState”},{“name”:“mailingAddressPostalCode”,“types”:[{“id”:"‘postal_code’"}]},{“name”:“mailingAddressCountry”,“types”:[{“id”:"‘country’"}],“abbr”:“mailingAddressCountry”}],“party”:{“id”:“emailAddress ? emailAddress : accountId”}}],“electronicCommunications”:[{“communicationType”:"‘email’",“communicationIdentifier”:“emailAddress”,“party”:{“id”:“emailAddress ? emailAddress : accountId”}}]}"
}

0 Likes

#2

Yes it will transform and create the party foreign reference with id as either email address or account Id. But it will never upsert an object in entity type Person.

0 Likes