docs(salesforce-faqs): clarify CreatedBy is immutable and reconnect only fixes future records - #2344
Open
george-dilthey wants to merge 1 commit into
Open
docs(salesforce-faqs): clarify CreatedBy is immutable and reconnect only fixes future records#2344george-dilthey wants to merge 1 commit into
george-dilthey wants to merge 1 commit into
Conversation
…ixes future records
Contributor
george-dilthey
marked this pull request as ready for review
August 26, 2026 20:24
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.
What changed
Added two clarifications to the "Why do records created or updated by Clay show my name (or another user's name) in Salesforce's Created By or Last Modified By field?" FAQ in
docs/salesforce-integration-faqs.md:CreatedByis immutable in Salesforce — set at record creation and cannot be changed afterward by any tool. The previous wording said "Clay does not have a mechanism to override this," which incorrectly framed this as a Clay design choice rather than a fundamental Salesforce database constraint.CreatedByon existing records cannot be retroactively updated.Why
Intercom conversation #215475657045862 (https://app.intercom.com/a/apps/w28k1kwz/inbox/inbox/conversation/215475657045862): An enterprise customer asked why all Salesforce records created by Clay showed a specific person (Chris Wade) as
CreatedByand Lead Owner, and whether Clay was running through that person's account as a service account. A human support rep had to answer because the existing docs didn't make clear that:CreatedByis a Salesforce-immutable field (a Salesforce constraint, not a Clay limitation)CreatedByfields cannot be changedThe human's answer: "Clay's Salesforce integration authenticates through the OAuth connection of whoever connected it, so every record Clay creates shows that user as CreatedBy. CreatedBy can't be changed after the fact, it's set by Salesforce at creation. The owner is controllable though: map the Lead Owner field in your Salesforce action to the Salesforce user ID you want. For the admin-level concern, reconnect the Salesforce integration under a dedicated integration user with only the permissions Clay needs."
The Lead Owner coverage was already complete in the existing FAQ ("Why is the owner on a new Salesforce lead or contact set to the Clay integration user?"). Only the
CreatedByimmutability and "future records only" scope were missing.Source link(s)
CreatedByset from OAuth access token —/workspace/public-actions/apps/salesforce-new-ui/actions/auth-utils.ts:29-35,/workspace/public-actions/apps/salesforce-new-ui/actions/create-object/action-code.ts:97OwnerIdis a createable field exposed for mapping —/workspace/public-actions/apps/salesforce-new-ui/actions/create-object/input-parameter-schema.ts:124-126/workspace/public-actions/authtypes/data/salesforce.json:68-133Uncertainties
None. All three behavioral claims verified PASS by the verifier sub-agent with file:line evidence. The
CreatedByimmutability is a documented Salesforce API contract.Related observations
salesforce-integration-faqs.mdbut cover completely unrelated topics (managed package AppExchange availability, campaign member duplicate handling, Update Record duplicate error, Map fields UX, Activity History queryability, error surfacing via formula). No reconciliation needed with this change.salesforce-integration-overview.md"Testing your connection" section already cross-references which Salesforce user a connection is authenticated as — no changes needed there.Closes DOC-2099