STRATCONN-6146 - [Dynamic Yield] - Support different id name in Segment #3197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current Segment <> DY Audience Destination allows customers to select an identifier to send to DY.
The name of the identifier selected must be the same in Segment as it is in DY. However we've had a customer ask if we could allow for the names to be different.
This PR allows customers to sync a Segment identifier (for example
user_id
) to a different identifier name in Dynamic Yield (for exampleexternalid
)It does this by adding a new configuration field named
dy_identifier_type
. It's an optional field.If the customer wanted to sync a Segment identifier named userId to a DY identifier named
externalid
, then they would apply the following settings:The payload sent to DY would look like the following:
Testing
Unit tests added
Tested locally. Staging test had a network issue.
Old functionality: Checks that we can still send payloads to DY without using the new dy_identifier_type field.
New functionality: Makes use of the new dy_identifier_type field to use the name of the ID in DY.