Member struct is the central data model for church member management, providing a modular, extensible way to represent all aspects of a member’s profile.
Overview
TheMember struct consolidates member information from Salesforce into logical sub-structs:
- Core Identity: Basic demographics, identifiers, and membership status
- Contact Information: Phone, email, address, and communication preferences
- Employment Information: Work status, organization, occupation, and sector
- Marital Information: Status, spouse details, anniversary tracking, and children
- Discipleship Information: Spiritual journey, courses, ministry involvement, and serving
Core Properties
Unique identifier for the member from Salesforce.
Type-safe member ID that validates and normalizes member IDs (must start with “TKT”).
Full name of the member, automatically constructed from first, middle, and last name components.
First name of the member.
Middle name of the member.
Last name of the member.
The member’s gender. Possible values:
male, female.Primary phone number of the member.
Name of the life group the member belongs to.
Demographic Properties
Rich birthday information with date components, age calculations, and days until next birthday.Sub-properties:
date: Date- The original birth dateyear: Int- Year componentmonth: Int- Month componentday: Int- Day componentage: Int- Current age in yearsdaysUntilNextBirthday: Int- Days until next birthdayshortFormat: String- Date in “day/month” format (e.g., “15/3”)usFormat: String- Date in “month/day” format (e.g., “3/15”)fullFormat: String- Full date in “day/month/year” format (e.g., “15/3/1990”)
The member’s title. Possible values:
dr, mr, mrs, ms, prof, rev, ps.The member’s type. Possible values:
tkt, efam, spm, iocVillages, conferenceEventsOnly, tktTeenXYouth, kingsKid, uae.The member’s blood group. Examples:
aPositive, bNegative, oPositive, abNegative.Array of preferred languages. Possible values:
english, telugu, hindi.Membership Properties
The campus the member is attending. Possible values:
eastLBNagar, westKukatpally, westHiTechCity, centralSecunderabad.The campus where the member serves.
Whether the member is part of a life group.
The member’s status. Possible values:
regular, irregular, relocated, longTimeAbsentee, doNotCall, leftTheChurch, promotedToGlory, active, doNotContact, inActive, inactiveDNC.The campus the member is associated with.
Whether the member is part of SPM (School of Practical Ministry).
The service the member is attending. Examples:
firstService, secondService, online, fridayNightService.Related Information
Comprehensive contact information including phone, email, address, and WhatsApp.See ContactInformation for details.
Employment and professional information including status, organization, occupation, and sector.See EmploymentInformation for details.
Marital status and family information including spouse, anniversary, and children.See MaritalInformation for details.
Spiritual journey and discipleship information including baptism, courses, and ministry involvement.See DiscipleshipInformation for details.
The parsed member photo with URL and metadata extracted from HTML.Sub-properties:
url: String- Direct image URLalt: String?- Alt text descriptiontags: [String]- Tags for the photo (e.g., “whatsapp”)
Date Tracking
Date when the member record was created in Salesforce.
Date when the member record was last modified in Salesforce.
Example Usage
Accessing Nested Data
TheMember struct provides convenient access to nested data through protocol conformance:
Field Expansion
Use MemberExpand to selectively fetch related information:See Also
- MembersHandler - Protocol for fetching members
- MemberExpand - Field expansion options
- ContactInformation - Contact details structure
- EmploymentInformation - Employment details structure
- MaritalInformation - Marital details structure
- DiscipleshipInformation - Spiritual journey structure
