STRATCONN-6751 - [Iterable] - update email address feature#3811
Open
joe-ayoub-segment wants to merge 5 commits into
Open
STRATCONN-6751 - [Iterable] - update email address feature#3811joe-ayoub-segment wants to merge 5 commits into
joe-ayoub-segment wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for updating a user’s email in the existing Iterable updateUser action by introducing a newEmail field and routing single-event requests through Iterable’s /api/users/updateEmail endpoint when present, while batch requests set the new email via dataFields.email in /api/users/bulkUpdate.
Changes:
- Added a new
updateEmailAPI endpoint constant and anewEmailaction field (typed/validated as an email). - Updated
performto call/api/users/updateEmailwhennewEmailis provided, sendingcurrentEmailand/orcurrentUserIdwhen available. - Updated
performBatchto include the new email asdataFields.emailper-user, plus expanded unit tests/snapshots accordingly.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/destination-actions/src/destinations/iterable/utils.ts | Adds updateEmail to the regional endpoint map used by Iterable actions. |
| packages/destination-actions/src/destinations/iterable/updateUser/index.ts | Introduces newEmail field; routes single requests to /users/updateEmail; sets dataFields.email in batch payloads when newEmail is present. |
| packages/destination-actions/src/destinations/iterable/updateUser/generated-types.ts | Adds newEmail to the generated Payload typings and docs. |
| packages/destination-actions/src/destinations/iterable/updateUser/tests/index.test.ts | Adds unit tests for updateEmail behavior and batch dataFields.email behavior. |
| packages/destination-actions/src/destinations/iterable/updateUser/tests/snapshots/snapshot.test.ts.snap | Updates snapshot output to reflect the newEmail branch request payload. |
joe-ayoub-segment
added a commit
that referenced
this pull request
Jun 19, 2026
Cover the updateUser newEmail feature (PR #3811) with e2e fixtures: - email -> newEmail single (update + updateEmail) - userId-only newEmail single (currentUserId branch) - batch newEmail folded into dataFields.email (per-item multistatus) Emails are generated per-run via randomUUID so the full create-then-rename path is exercised with fresh identifiers. Batch assertions verify both the per-item sent payload and the bulkUpdate successCount. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
identifiers when available
works for hybrid projects, not email-only projects
Testing
Security Review
Please ensure sensitive data is properly protected in your integration.
type: 'password'New Destination Checklist
verioning-info.tsfile. example