Skip to content

Add GenderIdentity and Pronouns fields to Contact and person Account stubs - #34

Merged
nawforce merged 1 commit into
mainfrom
issue-27
Jun 11, 2026
Merged

Add GenderIdentity and Pronouns fields to Contact and person Account stubs#34
nawforce merged 1 commit into
mainfrom
issue-27

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

  • Fixes Missing Contact.GenderIdentity possible issue with picklist types #27Contact.GenderIdentity (and Pronouns) were missing from the stubs.
  • Root cause: these standard optional picklist fields (available since API 57.0) ship with no field-level security granted to any profile, and stub generation works from describe results, which only include FLS-visible fields. So they never appeared for Contact. Lead/Prospect stubs already had them because the fields were FLS-visible to the generating user in the scratch org. This is not a picklist-type handling issue — picklists map to String as usual.
  • Added the fields wherever they exist in setup metadata (verified via FieldDefinition Tooling API queries against both a Summer '26 scratch org and a pre-release org):
    • Contact / ContactChangeEvent: GenderIdentity, Pronouns
    • Account / AccountChangeEvent (person accounts): PersonGenderIdentity, PersonPronouns

Testing

  • mvn -B install -Dgpg.skip passes locally (same as CI Build.yml).

…stubs

These standard optional picklist fields (API 57.0+) ship with no field-level
security granted to any profile, so describe-based generation never sees
them unless an admin grants access. Lead/Prospect stubs already include
them; this adds the Contact, ContactChangeEvent, Account (person account)
and AccountChangeEvent counterparts, verified against FieldDefinition
setup metadata.

Fixes #27
@nawforce
nawforce merged commit 9792fc2 into main Jun 11, 2026
1 check passed
@nawforce
nawforce deleted the issue-27 branch June 11, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing Contact.GenderIdentity possible issue with picklist types

2 participants