EventRelation

Represents a person (a user, lead, or contact) or a resource (such as a conference room) invited to an event. This object lets you add or remove invitees from an event and use the API to manage invitees’ responses to invitations. If Shared Activities is enabled, EventRelation can also represent other objects that are related to an event. EventRelation does not support triggers, workflow, or data validation rules.

EventRelation allows a variable number of relationships and handles deleted events differently, depending on whether Shared Activities is enabled.

A non-recurring event can have up to 1,000 invitees. A recurring event can have up to 100 invitees.

  • If Shared Activities Isn’t Enabled: - EventRelation records only represent invitees (contacts, users, and resources).
  • An event can be related to one contact or lead.
  • If Shared Activities Is Enabled: - EventRelation records can represent:
    • Invitees (IsInvitee= is set to true) OR
    • Related contacts or lead (IsParent is set to true)
  • An event can be related to up to 50 contacts or one lead. These people may or may not be invitees. The number of allowed invitees is not affected by the number of related contacts. If a contact or lead is also an invitee, there is one EventRelation record for that person with IsInvitee and IsParent are set to true.
  • An event can be related to a lead, contact, resource, account, or opportunity.
  • An event can be related to a custom object that has the HasActivities attribute set to true.
  • If you delete an event, then relations between the event and any specified contacts, leads, and other records are also deleted.
  • If you delete the EventRelation record representing a relation then the corresponding relation field may be cleared on the event.
  • If you delete the EventRelation record representing the WhoId on an event, then another Who, if any, from the event’s EventWhoIds field will be promoted to the WhoId.
  • If you restore a deleted event, relations between the event and any specified contacts, leads, and records are also restored. The WhoId, WhatId, and AccountId field values are recalculated using the field values on EventRelation.

Whether or not Shared Activities is enabled, an event can be related to one other kind of record, such as an account, an opportunity, or a custom object.

Introduced in API version 26.0.

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()

  • Type: reference
  • Properties: Filter, Group, Nillable, Sort
  • Description: Contains the Account ID of the relation. For information on IDs, see ID Field Type. AccountId is visible when Shared Activities is enabled.
  • Relationship name: Account
  • Relationship type: relationship
  • Refers to: Account
  • Type: reference

  • Properties: Create, Filter, Group, Sort

  • Description:

    Contains the ID of the event. This value can’t be changed after it’s been specified.

    This is a relationship field.

  • Relationship name: Event

  • Relationship type: relationship

  • Refers to: Event

  • Type: boolean

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description:

    Indicates whether the relation is an invitee.

    • IsInvitee is visible while Shared Activities is being enabled, after it has been enabled, and while it is being disabled.
    • IsInvitee defaults to true while Shared Activities is being enabled, after it has been enabled, and while it is being disabled if IsInvitee, IsParent, and IsWhat are not set. This configuration ensures compatibility when Shared Activities isn’t enabled and EventRelation represents event invitees only.
    • IsInvitee defaults to false when Shared Activities is enabled if IsParent is set to true.
  • Default value: false

  • Type: boolean

  • Properties: Defaulted on create, Filter, Group, Sort

  • Introduced: API version 68.0

  • Default value: false

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: IsParent is visible only when Shared Activities is enabled. When false, indicates that the relation is an invitee (a contact, lead, or user). When true, indicates that the relation is a Who or What, as determined by IsWhat field.
  • Default value: false
  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort
  • Description: IsWhat is visible only when Shared Activities is enabled. The value is relevant only if IsParent is true. When IsWhat is true, the relation specified by RelationId is a What (an account, opportunity, custom object, etc.). When IsWhat is false, the relation specified by RelationId is a Who (a contact, lead, or user).
  • Default value: false
  • Type: reference

  • Properties: Create, Filter, Group, Sort

  • Description:

    Contains the ID of the person (User, Contact, or Lead) or the resource invited to an event. When Shared Activities is enabled, RelationId can also contain the ID of an account, opportunity, or other object related to an event.

    This value can’t be changed after it’s been specified.

    This is a polymorphic relationship field.

  • Relationship name: Relation

  • Relationship type: polymorphic

  • Refers to: AcadTermEnrlPolicyRuleLog, AcademicCredential, AcademicInterest, AcademicOrder, AcademicSession, AcademicTerm, AcademicTermEnrollment, AcademicTermPolicyRule, AcademicTermRegstrnTimeline, AcademicYear, Account, AccountAccountRelation, AccountBillingAccount, AccountFinancialSummary, AccountForecast, AccountLeadTime, AccountPlan, AccountPlanObjective, AccountPlanObjectiveCategory, AccountPlanObjectiveMeasure, AccountPlanParticipant, AccountPlanRelaObjAnalysis, AccountPlanRelationship, AccountPlanStakeholder, AccountPlanStkhldrProduct, AccountProductCategoryClsfn, AccountServicePreference, AccountingPeriod, Accreditation, AcctMgrTarget, AcctPlanPtcpStakeholder, ActionPlanStatusPeriod, ActionPlanTemplateAssignment, ActionVisibility, ActionableEventOrchestration, ActionableEventSubtype, ActionableEventType, ActivityPlan, ActivityTiming, AdAvailabilityDimensions, AdAvailabilityJob, AdAvailabilityViewConfig, AdAvailableTargetSegment, AdAvailableTargetSegmentValue, AdBuyServerAccount, AdCreativeSizeType, AdDemographicCode, AdDigitalAvailability, AdLinearAvailability, AdOpportunity, AdOpportunityLineItem, AdOpportunityObjective, AdOpportunityTargetValue, AdOrderItem, AdOrderItemAdSpaceSpec, AdOrderItemCreativeSizeType, AdOrderItemDeliveryFrequency, AdOrderItemDeliverySchedule, AdOrderItemPrintIssue, AdOrderItemUnitsSplit, AdOrderLineAdTarget, AdOrderLineHiatus, AdOrderLineTargetExpression, AdOrderLineTargetValue, AdPageLayoutType, AdProductDefaultTargetCategory, AdProductDefaultTargetValue, AdProductTargetCategory, AdQuote, AdQuoteLine, AdQuoteLineAdSpaceSpec, AdQuoteLineAdTarget, AdQuoteLineCreativeSizeType, AdQuoteLineDeliveryFrequency, AdQuoteLineDeliverySchedule, AdQuoteLineHiatus, AdQuoteLinePrintIssue, AdQuoteLineTargetExpression, AdQuoteLineTargetValue, AdQuoteLineUnitsSplit, AdQuoteLinearMetrics, AdQuoteMediaTypeProperty, AdServer, AdServerAccount, AdServerAccountContact, AdServerUser, AdSpace, AdSpaceCapacity, AdSpaceCapacityAllocation, AdSpaceCreativeSizeType, AdSpaceGroupMember, AdSpaceSpecProduct, AdSpaceSpecification, AdSpecMediaPrintIssue, AdTargetCategSgmtAdSrvr, AdTargetCategory, AdTargetCategorySegment, AdTargetSegmentValAdSrvr, AdTargetSegmentValue, AdTargetTemplate, AdTargetTemplateValue, AdUsage, AdUsageSummary, AdvAccountForecastFact, AdvAcctForecastSetPartner, AdvAcctForecastSetUse, AdvTherapyFieldOptOverride, AdverseEventAction, AdverseEventCause, AdverseEventContribFactor, AdverseEventEntry, AdverseEventOutcome, AdverseEventParty, AdverseEventSupportInfo, AdverseEvntResultingEffect, AiVisitRecommendRequest, AiVisitRecommendation, AiVisitTaskRcmd, AiVisitTaskRcmdRequest, AirTravelEmssnFctr, AirTravelEnrgyUse, AllergyIntolerance, AnnualEmssnInventory, AnnualEmssnInventoryExtension, AnnualEmssnRdctnTarget, AntiCorruptionInitSum, AppAlert, AppAlertTerritory, AppAlertUserResponse, AppFormProdtFinclAccount, AppFormProductCollateral, Applicant, ApplicantApplicantRelation, ApplicationActionItem, ApplicationCase, ApplicationDecision, ApplicationForm, ApplicationFormEvalPtcp, ApplicationFormEvalSection, ApplicationFormEvaluation, ApplicationFormProduct, ApplicationFormProductDev, ApplicationFormProductFee, ApplicationFormProductProposal, ApplicationFormRelatedCode, ApplicationFormRelation, ApplicationFormSellerItem, ApplicationFormTemplate, ApplicationFormTerm, ApplicationRecommendation, ApplicationRecommender, ApplicationRenderMethod, ApplicationReview, ApplicationSectionDefinition, ApplicationStageDefinition, ApplicationTimeline, ApplnActnItemDocChecklistItem, ApplnRenderMethodAssignment, ApplnStageSectionDefinition, AppointmentCategory, AppointmentInvitation, AppointmentReason, Appraisal, AppraisalAdjustment, AppraisalItem, AppraisalItemAddOn, AppraisalItemProviderVal, ApprovalSubmission, ApprovalSubmissionDetail, ApprovalWorkItem, ApprovalWorkItemCondition, ApprovalWorkItemCriteria, ApptBundleAggrDurDnscale, ApptBundleAggrPolicy, ApptBundleConfig, ApptBundlePolicy, ApptBundlePolicySvcTerr, ApptBundlePropagatePolicy, ApptBundleRestrictPolicy, ApptBundleSortPolicy, AsmtIndDefExt, AsmtQstnMaterialityTpc, AsmtQstnRespRecommendation, Assessment, AssessmentDefinition, AssessmentEnvelope, AssessmentEnvelopeItem, AssessmentIndicatorDefinition, AssessmentQstnVerChoice2, AssessmentQuestion, AssessmentQuestionAssignment, AssessmentQuestionResponse, AssessmentQuestionSet, AssessmentQuestionSourceDoc, AssessmentQuestionVerChoice, AssessmentQuestionVersion, AssessmentReason, AssessmentSignature, AssessmentTask, AssessmentTaskContentDocument, AssessmentTaskDefinition, AssessmentTaskOrder, Asset, AssetAccountParticipant, AssetActionSrcPriceAdjustment, AssetCase, AssetContactParticipant, AssetDataSharingParticipant, AssetDepreciation, AssetDowntimePeriod, AssetMilestone, AssetRelationship, AssetServiceRequest, AssetTimeSheet, AssetTitle, AssetTitleParty, AssetType, AssetWarranty, AssignedResource, Assortment, AssortmentProduct, AssortmentSpec, AttrPicklistExcludedValue, AttributeAdjustmentCondition, AttributeBasedAdjRule, AttributeBasedAdjustment, AttributeCategory, AttributeCategoryAttribute, AttributeDefinition, AttributePicklist, AttributePicklistValue, AuthApplicationAsset, AuthApplicationPlace, AuthLocationAccessSchedule, AuthorNote, AuthorizedInsuranceLine, Award, BalanceAdjustmentRequest, Banker, Benefit, BenefitAsgntProviderLoc, BenefitAssignment, BenefitAssignmentAsset, BenefitDisbursement, BenefitDisbursementAdj, BenefitItemCode, BenefitPrvdSearchableFld, BenefitSchedule, BenefitScheduleAssignment, BenefitSession, BenefitSpecialty, BillingAccount, BillingAccountContact, BindingObjUsageRsrcPlcy, BindingObjectCustomExt, BindingObjectRateAdjustment, BindingObjectRateCardEntry, BiodiversitySummary, BldgEnrgyIntensity, BldgEnrgyIntensityVal, BldgSizeCategory, BnftAsgntBnftItemCode, BoardCertification, BranchUnit, BranchUnitBusinessMember, BranchUnitCustomer, BrokerOfRecord, Budget, BudgetAllocation, BudgetCategory, BudgetCategoryValue, BudgetParticipant, BudgetPeriod, BudgetProduct, BudgetTerritory, BundleBasedAdjustment, BundledCareFeeAgreement, BusOperProcParticipant, BusOperProcRegClVer, BusRegAuthTypeDependency, BusRegAuthorizationType, BusinessLicense, BusinessLicenseApplication, BusinessLicenseCodeSet, BusinessLicenseProduct, BusinessMilestone, BusinessOperationsProcess, BusinessProfile, BusinessType, BuyerAccount, BuyerGroupPricebook, CalculationMatrix, CalculationMatrixVersion, CalculationProcedure, CalculationProcedureVersion, Calendar, Campaign, CampaignMemberExtension, CapitationCareFeeAgreement, CareBarrier, CareBarrierDeterminant, CareBarrierType, CareBenefitVerifyRequest, CareDeterminant, CareDeterminantType, CareDiagnosis, CareEpisode, CareEpisodeDetail, CareFacilityBed, CareFeeScheduleItem, CareGap, CareGapCriteriaResult, CareInterventionType, CareMetricTarget, CareObservation, CareObservationComponent, CarePgmEnrleeStatusPeriod, CarePgmEnrolleeWkOrdStep, CarePgmEnrolleeWorkOrder, CarePgmEnrollmentEvalRslt, CarePgmProvHealthcareProvider, CarePgmTeamMbrRolePeriod, CarePlan, CarePlanActivity, CarePlanActivityDetail, CarePlanDetail, CarePlanTemplate, CarePlanTemplateBenefit, CarePlanTemplateGoal, CarePlanTemplateProblem, CarePractnFacilityAppt, CarePreauth, CarePreauthItem, CareProcessingError, CareProgram, CareProgramAssistance, CareProgramCampaign, CareProgramDetail, CareProgramEligibilityRule, CareProgramEnrollee, CareProgramEnrolleeProduct, CareProgramEnrollmentCard, CareProgramGoal, CareProgramProduct, CareProgramProvider, CareProgramSite, CareProgramSiteContract, CareProgramStatusPeriod, CareProgramTeamMember, CareProviderAdverseAction, CareProviderFacilitySpecialty, CareProviderSearchableField, CareRegisteredDevice, CareRequest, CareRequestDrug, CareRequestExchangeInfo, CareRequestExtension, CareRequestItem, CareRequestReviewer, CareRequestSupportingCntnt, CareService, CareServiceVisit, CareServiceVisitPlan, CareSiteIstgrSearchableFld, CareSpecialty, CareSpecialtyTaxonomy, CareTaxonomy, CareTeam, Case, CaseEpisode, CaseFileProcessExecution, CaseGeneratedSummary, CaseParticipant, CaseProceeding, CaseProceedingComplaint, CaseProceedingInfraction, CaseProceedingParticipant, CaseProceedingResult, CaseProgram, CaseRelatedSubject, CaseTeamMemberProgram, CaseTroubleTicket, CategorizedCareFeeAgreement, ChangeRequest, ChangeRequestConflict, ChannelProgram, ChannelProgramLevel, Claim, ClaimCase, ClaimCovPaymentAdjustment, ClaimCovReserveAdjustment, ClaimCoverage, ClaimCoveragePaymentDetail, ClaimCoverageReserveDetail, ClaimItem, ClaimItemRelatedObject, ClaimParticipant, ClaimPaymentSummary, ClaimPayoutPlan, ClaimRecovery, ClaimTeamMember, CleanEnergyProject, ClimateChgEmssnFincSummary, ClimateChgRiskOppSummary, ClinicalAlert, ClinicalDetectedIssue, ClinicalDetectedIssueDetail, ClinicalEncounter, ClinicalEncounterDiagnosis, ClinicalEncounterFacility, ClinicalEncounterIdentifier, ClinicalEncounterProvider, ClinicalEncounterReason, ClinicalEncounterSvcRequest, ClinicalMeasure, ClinicalMeasureCriteria, ClinicalMeasureCriteriaGrp, ClinicalServiceRequest, ClinicalServiceRequestDetail, CmplControlParticipant, CmplCtrlVerTestExecution, CmplPolicyParticipant, CmplValidationProcdVer, CmplValidationProcedure, CmplVldProcdParticipant, CodeSetRelationship, CollectionPlan, CollectionPlanItem, CollectionPlanReason, CommSubscriptionConsent, CommissionSchedule, CommissionScheduleAssignment, CommissionStatement, CommissionStatementLineItem, CompPlcyCommsRecipient, CompPlcyCommsResponse, Competency, CompetencyRelatedObject, CompiledProduct, ComplaintCase, ComplaintParticipant, ComplianceControl, ComplianceControlVersion, CompliancePlcyClauseVersion, CompliancePolicy, CompliancePolicyClause, CompliancePolicyComms, CompliancePolicyVersion, ComplianceRisk, ComplianceRiskEvaluation, ComplianceStatementDef, ComplianceTest, CondIntrctnHlthRskAdjFctr, ConstituentRole, Contact, ContactContactRelation, ContactEncounter, ContactEncounterParticipant, ContactPointBestContactTime, ContactPointSocial, ContactProfile, ContactRequest, ContentLink, ContentSource, Contract, ContractDocVerContentDoc, ContractDocVersionSection, ContractDocumentVersion, ContractGroupPlan, ContractGroupPlanGroupClass, ContractLineItem, ContractPaymentAgreement, CostBook, CostBookEntry, CostCenter, Coupon, CourseCreditTransferAppln, CourseEquivalency, CourseOffering, CourseOfferingParticipant, CourseOfferingPtcpResult, CourseOfferingRelationship, CourseOfferingRgstrTimeline, CourseOfferingSchedule, CourseOfferingScheduleTmpl, CourseOfrPtcpActvtyGrd, CourseOfrgRubricCriterion, CoverageBenefit, CoverageBenefitItem, CoverageBenefitItemLimit, CoverageType, CrbnCreditAlloc, CrbnCreditAllocItem, CrbnCreditDistribution, CrbnCreditProject, CrbnEmssnScopeAlloc, CrbnEmssnScopeAllocVal, CreditMemo, CustodyChainEntry, CustodyItem, CustodyItemRelation, CustodyItemRgltyCodeVio, CustodyVerfcTypeOverride, CustomEntityDataTemplate, CustomerProperty, DataQueryWorkspace, DealIndirectPartner, DebitMemo, DelegatedAccount, DeliveryEstimationSetup, DeliveryTask, DepreciationPlan, Deviation, DevopsActivityLog, DevopsEnvDeployment, DevopsEnvDeploymentMbr, DevopsEnvironment, DevopsPipeline, DevopsPipelineEnvironment, DevopsPipelineStage, DevopsPipelnStgProm, DevopsPipelnStgPromWkItem, DevopsProject, DevopsProjectEnvironment, DevopsProjectPipeline, DevopsRequestInfo, DiagnosticSummary, DiagnosticSummaryDetail, DifferentialShift, DigitalSignatureRequest, DigitalVerfSetupDetail, DigitalVerification, DigitalVerificationSetup, Disclosure, DisclsReportingPeriod, DiseaseDefinition, DiseaseDefinitionCondition, DiseaseDefinitionCriteria, DiseaseInvestigation, DiseaseInvestigationCase, DiseaseOutbreak, Dispute, DisputeItem, DisputeItemArbitration, DisputeItemMerchantAlert, DistributorAuthorization, DivrsEquityInclSum, DocChkItemValidatedTarget, DocClauseSetAsmtQstn, DocTemplateSectionCondition, DocumentChecklistItem, DocumentClause, DocumentClauseSet, DocumentDecisionRequirement, DocumentEnvelope, DocumentExtractionRqstStep, DocumentRecipient, DocumentTemplate, DocumentTemplateContentDoc, DocumentTemplateSection, DocumentTemplateToken, DonorGiftConcept, DonorGiftConceptOpportunity, DonorGiftSummary, EconomicPerformanceSum, EducCharReqAssignment, EducCharReqRelationship, EducCharRequirement, EducCharacteristicAssignment, EducCharacteristicType, EducInstSearchableProfile, EducInstitutionOffering, EducationalCharacteristic, EducationalInfoRequest, ElectrLifecyclEmssnFctrSet, ElectricityEmssnFctrSet, EmissionsActivity, EmissionsAllocation, EmissionsForecastFact, EmpBenefitSummary, Employee, EmployeeDemographicSum, EmployeeDevelopmentSum, Employment, EmploymentCompensationSummary, EmploymentOffer, EmploymentOfferVettingEval, EmssnRdctnCommitment, EmssnReductionTarget, EnergyAttrCertCredit, EnergyAttrCertPurchase, EnergyAttrCreditDstr, EnergyServiceAgreement, EnergyServiceAgreementItem, EngagementAttendee, EngagementInteraction, EngagementTopic, EnrollmentEligibilityCriteria, Entitlement, EnvironmentalRisk, EstimatedExpense, EventMgmtFairMarketValue, EventMgmtResourceRequest, EventMgmtSvcSpclzn, EventMgmtSvcSpclznTier, EventPlan, EventPlanBudget, EventPlanItem, EventPlanParticipant, EventPlanProduct, EventPlanSubject, EventPlanSvcSpclzn, EventPlanTerritory, Examination, Expense, ExpenseParticipant, ExpenseReport, ExpenseReportEntry, ExpenseType, Expert, ExpertEventMgmtSvcSpclzn, ExpertSubject, ExpressionSet, ExpressionSetVersion, ExternalAssessmentDefinition, ExternalLearning, ExternalLearningPtcpResult, ExtlPtcpRsltLrnrPgmRqmt, FinAssetPortfolioTgtAlloc, FinancialAccount, FinancialAccountAddress, FinancialAccountBalance, FinancialAccountFee, FinancialAccountMilestone, FinancialAccountParticipant, FinancialAccountParty, FinancialAccountStatement, FinancialAccountTransaction, FinancialDeal, FinancialDealAsset, FinancialDealBid, FinancialDealInteraction, FinancialDealParty, FinancialDealProduct, FinancialGoal, FinancialSecurity, FinclAcctPtyFinclAsset, FinclDealInteractionSummary, Fleet, FleetAsset, FleetParticipant, FlowOrchestrationInstRelaObj, Formulary, FormularyItem, FrgtHaulingEmssnFctr, FrgtHaulingEnrgyUse, FtestAccountChild, FtestChild, FtestGrandChild, FtestMain, FulfillmentOrder, FulfillmentStep, FulfillmentStepDefinition, FulfmtRoutgCriteria, FulfmtRoutgCriteriaActnVar, FulfmtRoutgCriteriaCond, FulfmtRoutgCriteriaGrp, FulfmtRoutgCriteriaGrpVer, FulfmtRoutgSpec, FulfmtRoutgSpecLocation, FulfmtRoutgSpecProduct, FundTransferRequest, FundingAward, FundingAwardAmendment, FundingAwardParticipant, FundingAwardRequirement, FundingAwardRqmtSection, FundingDisbursement, FundingOppParticipant, FundingOpportunity, GeneralLedgerAccount, GeneralLedgerAcctAsgntRule, GeneratedDocument, GeneratedDocumentSection, GeneratedWaste, GenericVisitTask, GenericVisitTaskContext, GeolocationBasedAction, GiftActuarialEntry, GiftAgreement, GiftBatch, GiftCmtChangeAttrLog, GiftCommitment, GiftCommitmentSchedule, GiftDefaultDesignation, GiftDefaultSoftCredit, GiftDesignation, GiftEntry, GiftRefund, GiftSoftCredit, GiftStewardship, GiftStewardshipActivity, GiftTransaction, GiftTransactionDesignation, GiftTribute, GiftValueForecast, GnrcVstKeyPerformanceInd, GnrcVstTaskContextRelation, Goal, GoalAssignment, GoalAssignmentDetail, GoalDefinition, GoalDefinitionProduct, GoodsReceivedNote, GoodsReceivedNoteItem, GovtFinancialAsstSum, GroundTravelEmssnFctr, GroundTravelEnrgyUse, GroupCensus, GroupCensusMember, GroupCensusMemberPlan, GroupClass, GroupClassContribution, GrpCensusGrpClassSummary, HealthCondition, HealthConditionDetail, HealthRiskEvalDetail, HealthRiskEvalOutcome, HealthRiskEvaluation, HealthcareFacility, HealthcareFacilityNetwork, HealthcarePayerNetwork, HealthcarePractitionerFacility, HealthcareProvider, HealthcareProviderNpi, HealthcareProviderService, HealthcareProviderSpecialty, HealthcareProviderTaxonomy, HealthcareServiceDetail, HierCondHlthRskAdjFctr, HlthCareProvTreatedCondition, HotelStayEmssnFctr, HotelStayEnrgyUse, ITSrvcsConfigItemRela, ITSrvcsConfiguredItem, ITSrvcsIncdRelaCnfigItm, IdentityDocument, Image, ImpactRiskOpportunity, ImpactRiskOpportunityScore, ImpactRiskOpportunityTopic, ImpcRiskOppAssessment, ImpcRiskOppAssessmentTopic, InStoreLocation, Incident, IndexRate, IndividualApplication, IndividualApplicationItem, IndividualApplicationTask, IndividualApplicationTaskItem, IndividualApplnParticipant, IndvApplicationTaskParticipant, InflationRate, InfoAuthorizationRequest, InfoLibraryExternalDocument, InformationVerification, Inquiry, InquiryQuestion, InquiryQuestionAnswer, InsBnftEligDefinition, InsContributionPlnGroupCls, InsContributionPlnLineItem, InsPlcyLimit, InsPlcyLimitTracking, InsPolicyAssetRelatedObj, InsPolicyBenefitEligibility, InsPolicyBillingInfo, InsPolicyCoverageBenefit, InsPolicyCoverageNetwork, InsPolicyCvrRelatedObj, InsPolicyPtcpRelatedObj, InsPolicyRelatedObject, InsPolicyTransactionDetail, InsProductClauseVariableMap, InspectionAssessmentInd, InspectionType, InsuranceAsyncBulkRecordDetail, InsuranceAsyncBulkRequest, InsuranceAsyncBulkRequestItem, InsuranceClaimAsset, InsuranceClause, InsuranceContract, InsuranceContributionPlan, InsurancePolicy, InsurancePolicyAsset, InsurancePolicyCoverage, InsurancePolicyMemberAsset, InsurancePolicyParticipant, InsurancePolicyProductClause, InsurancePolicySurcharge, InsurancePolicyTeamMember, InsurancePolicyTransaction, InsuranceProductClause, InsuranceProfile, InsuranceRatePlan, InsuranceRatePlanCommission, InsuranceRatePlanLineItem, IntakeFormSection, IntakeFormSectionPtcp, IntegrationJobRun, IntegrationProviderDcsnRqmt, IntegrationProviderExecution, Interaction, InteractionAttendee, InteractionRelatedAccount, InteractionSumDiscussedAccount, InteractionSummary, InteropTopic, InteropTopicDetail, InteropTopicFilter, InteropTopicNtfcnResource, InteropTopicSubcrFilter, InteropTopicSubcrParameter, InteropTopicSubscription, InteropTopicSubscriptionDtl, InteropTopicTriggerCriteria, InventoryCntSerializedProdt, InventoryCountPlan, InventoryCountProductItem, InventoryReplenishmentPolicy, Invoice, InvoiceDocument, InvolvementGroup, InvolvementGroupMember, IssuedCard, JobExpenseType, JobPosition, JobPositionAssignment, JobPositionPayGrade, JobPositionQualification, JobPositionShift, JobPstnRecruitmentRqs, LaborUnion, LandingPage, LandingPageContent, Lead, LeadLineItem, LeadPreferredSeller, LearnerPathway, LearnerPathwayItem, LearnerProfile, LearnerProgram, LearnerProgramRequirement, LearnerProgramRqmtProgress, Learning, LearningAchievement, LearningCourse, LearningEquivalency, LearningEquivalencyLearning, LearningEqvAchvMapping, LearningFoundationItem, LearningOutcomeItem, LearningPathwayTemplate, LearningPathwayTemplateItem, LearningPathwayTmplPgmPlan, LearningProgram, LearningProgramPlan, LearningProgramPlanRqmt, LearningRule, LegalEntity, LegalEntyAccountingPeriod, LifeSciAcctGrpAssignment, LifeSciDocTemplateVersion, LifeSciEmailTemplate, LifeSciEmailTmplFragment, LifeSciEmailTmplRelaFrgmt, LifeSciEmailTmplSnapshot, LifeScienceDocument, LifeScienceDocumentTemplate, LifeScienceEmail, ListEmail, LiveAgentSession, LiveChatTranscript, LoanApplicant, LoanApplicantAddress, LoanApplicantDeclaration, LoanApplicantEmployment, LoanApplicantIncome, LoanApplicationAsset, LoanApplicationFinancial, LoanApplicationLiability, LoanApplicationProperty, LoanApplicationTitleHolder, Location, LocationShippingCarrierMethod, LocationWaitlistedParty, LoyaltyMembershipLifecycle, LoyaltyPgmGroupMbrRlnsp, LoyaltyPgmPartnerCurrency, LoyaltyPgmPartnerPromotion, LoyaltyPgmPtnrPrepaidPack, LoyaltyProgram, LoyaltyProgramMbrPromotion, LoyaltyProgramMember, LoyaltyProgramMemberCase, MaintenanceAsset, MaintenancePlan, ManagedCareProgramPrfm, ManufacturingProgram, MarketingForm, MarketingLink, MarketingLinkContent, MaterialityAssessment, MaterialityMatrixScore, MaterialityStakeholder, MaterialityStkhldrCatg, MaterialityTopic, MaterialityTopicDocClauseSet, MaterialityTopicQstn, MaterialityTopicReference, MedReconRecommendation, MedReconStmtRecommendation, MedTherapyStmtReviewIssue, MediaChannel, MediaContentTitle, MediaPrintIssue, MediaTitleAvailAttribute, MediaTitleAvailability, MediaTitleReleaseDate, MediaTitleRevenue, MedicalInsight, MedicalInsightAccount, MedicalInsightGoalDef, MedicalInsightProduct, MedicationAdministration, MedicationAdministrationDtl, MedicationDispense, MedicationReconciliation, MedicationRequest, MedicationStatement, MedicationStatementDetail, MedicationTherapyReview, MedicationTherapyStmtReview, MedicinalIngredient, MemberPlan, MemberPlanCarePlan, MemberPlanMedicationStmt, MentoringProfile, MergeRequest, Metric, MfgProgramCpntFrcstFact, MfgProgramForecastFact, MfgProgramVariantFrcstFact, MngEvent, MngEventBudget, MngEventParticipant, MngEventProduct, MngEventPtcpDiscrepancy, MngEventResource, MngEventResourcePreference, MngEventRsrcPtcpRequest, MngEventSession, MngEventSessionParticipant, MngEventSuplProdtAsgnPtcp, MngEventSupplierProduct, MngEventTerritory, MngEventType, MonthlyUsageTrkgDataGap, MultipartyInfoAuthRequest, ObjectStateActionDefinition, ObjectStateDefinition, ObjectStateTransition, ObjectStateTransitionAction, ObjectStateValue, Obligation, Occupation, OccupationGroup, Offer, OfferListEmail, OfferProduct, OfferProductCategory, OmniAssessmentTask, OmniProcessAsmtQuestionVer, OmniProcessOmniAsmtTask, OmniScriptSavedSession, OnbrdDataObjGrpRecVld, OnbrdDataObjGrpRecVldCalc, OperatingHoursHoliday, Opportunity, OpportunityLineItemRecipient, OpportunityLineItemSchdActual, OpportunityPreferredSeller, Order, OrderItemUsageRsrcGrant, OrderItemUsageRsrcPlcy, OrderSummary, OrderUseRsrcChosenPolicy, OrgIncidentSummary, OrgPaymentPracSummary, OtherComponentTask, OtherEmssnFctrSet, OtherEmssnFctrSetItem, OthrLifecyclEmssnFctrSet, OthrLifecyclEmssnFctrSetItem, OutreachSourceCode, OutreachSummary, OvertimeApprover, OvertimeType, PartnerFundAllocation, PartnerFundClaim, PartnerFundRequest, PartnerMarketingBudget, PartnerStagedData, PartnerUnsoldInvLedger, PartnerUnsoldInventory, PartyAppointmentRequest, PartyBusinessRegion, PartyCategory, PartyCertifiedCapacity, PartyConsent, PartyCreditPrflFinclAcct, PartyCreditProfile, PartyCreditProfileAlert, PartyCreditProfileFldVld, PartyCreditProfileInquiry, PartyExpense, PartyExpenseFldVld, PartyFinancialAsset, PartyFinancialAssetLien, PartyFinancialAssetRela, PartyFinancialAssetTerm, PartyFinancialLiability, PartyFinclAssetAddlOwner, PartyFinclAstFldVld, PartyFinclLiabAddlBrwr, PartyFinclLiabFldVld, PartyIdentityVerfFldVld, PartyIdentityVerification, PartyIdentityVerificationStep, PartyIncome, PartyIncomeFldVld, PartyPhilanthropicAssessment, PartyPhilanthropicIndicator, PartyPhilanthropicMilestone, PartyPhilanthropicOccurrence, PartyPhilanthropicRsrchPrfl, PartyPrflAddrFldVld, PartyPrflFldVld, PartyProfile, PartyProfileAddress, PartyProfileRisk, PartyProfileRiskFldVld, PartyPublication, PartyRelationshipGroup, PartyRoleRelation, PartySchedulePreference, PartyScreeningStep, PartyScreeningSummary, PartyScrnSumFldVld, PatientImmunization, PatientImmunizationProtocol, PatientMedicalProcedure, PatientMedicalProcedureDetail, PayGrade, PayGradeStep, PayGradeStepLocation, PayGroup, PayPeriod, PayType, PaymentCart, PaymentCartItem, PaymentInstrument, PaymentLink, PaymentMandate, PaymentRequest, PaymentRequestLine, PcmtEmssnFctrSet, PcmtEmssnFctrSetItem, PercentileBsdCareFeeAgreement, PersonAcademicCredential, PersonAffinity, PersonCompetency, PersonDisability, PersonEducation, PersonEmpFldVld, PersonEmployment, PersonExamination, PersonLifeEvent, PersonLocationAvailability, PersonTrait, PetitionType, PetitionableOutcome, PgmRebateTypBnftMapping, PickTicket, PickTicketAssignment, PlanBenefit, PlanBenefitItem, PlannedGift, PlannedGiftAnnuityRate, PlannedGiftPerformance, PltnImpactRiskOppSummary, Polygon, Position, PositionBenefit, PositionPayGrade, PositionQualification, PreliminaryApplicationRef, Presentation, PresentationClickStrmEntry, PresentationContent, PresentationForum, PresentationLinkedPage, PresentationPage, PresentationPageProduct, PresentationPartyAccess, PreventiveCareAgreement, PriceAdjustmentProductRule, PriceAdjustmentSchedule, PriceAdjustmentTier, PriceBookAcademicInterval, PriceBookEntryDerivedPrice, PriceBookPriceGuidance, PriceBookRateCard, PriceProtectExecLineItem, PriceProtectionExecution, PriceProtectionTerm, PriceRevisionPolicy, PricingAdjBatchJob, PricingAdjBatchJobLog, PricingApiExecution, PricingProcedureResolution, PricingProcessExecution, PriorLearningEvaluation, PrivacyHold, PrivacyHoldReason, PrivacyRTBFRequest, PrivacyRequest, Problem, ProblemDefRelationship, ProblemDefinition, ProblemGoalDefinition, ProcessException, ProdtAttrMappedScope, ProdtAttrScope, ProdtDecompEnrchVarMap, ProdtSvcCmpnDefPtnrInv, ProdtSvcCmpnDefRelaCausalItm, ProdtSvcCmpnGrpDefCausalItm, ProdtSvcCmpnGrpDefPtnr, ProdtSvcCmpnPreferredPartner, ProdtSvcCmpnWorkType, Producer, ProducerCommission, ProducerPolicyAssignment, ProducerRelationship, ProducerSplitArngLineItem, ProducerSplitArrangement, ProducerSplitAssignment, ProducerSplitRoleAssignment, Product2, ProductAttributeDefinition, ProductAvlSvcCatalogItem, ProductCatalog, ProductCategoryAttribute, ProductCategoryServiceProcess, ProductClassification, ProductClassificationAttr, ProductComponentGroup, ProductComponentGrpOverride, ProductConfigurationRule, ProductConsumed, ProductCoverage, ProductDetectedPriceChange, ProductEmissionsFactor, ProductFaultCode, ProductFee, ProductItem, ProductItemAddlTrxn, ProductLaborCode, ProductListRate, ProductOverridePathItem, ProductPriceHistoryLog, ProductPriceRange, ProductRampSegment, ProductRelComponentOverride, ProductRelatedMaterial, ProductRequest, ProductRequestLineItem, ProductRqmtSpec, ProductRqmtSpecItem, ProductRqmtSpecVersion, ProductSellingModel, ProductServiceCampaign, ProductServiceCampaignItem, ProductSurcharge, ProductSvcCampaignDef, ProductSvcCampaignGrpDef, ProductSvcCmpnDefProdtBtch, ProductTransfer, ProductUsageResourcePolicy, Program, ProgramApplnFormTemplate, ProgramCohort, ProgramCohortMember, ProgramEnrlEligibilityCrit, ProgramEnrollment, ProgramInitiative, ProgramInitiativeEnrl, ProgramProduct, ProgramRebateTypEligibility, ProgramRebateTypPayoutSrc, ProgramRebateType, ProgramRebateTypeBenefit, ProgramRebateTypeFilter, ProgramRebateTypePayout, ProgramRebateTypeProduct, ProgramRebateTypeReference, ProgramRecommendationRule, ProgramTermApplnTimeline, Promotion, PromotionChannel, PromotionLimit, PromotionLimitUsage, PromotionMarketSegment, PromotionPresentation, PromotionProduct, PromotionProductCategory, PromotionQualifier, PromotionSegment, PromotionSegmentBuyerGroup, PromotionSegmentSalesStore, PromotionTarget, PromotionTier, ProviderAcctProductInfo, ProviderAcctTerritoryInfo, ProviderActivityGoal, ProviderActivityGoalLimit, ProviderActivityGoalMeasure, ProviderActvtyPlanAdjusment, ProviderAffiliation, ProviderAffiliationProduct, ProviderNetworkContract, ProviderNetworkTier, ProviderOffering, ProviderSampleLimit, ProviderSmplLmtTmplAssignment, ProviderVisit, ProviderVisitDtlProductMsg, ProviderVisitMarketingItem, ProviderVisitProdDetailing, ProviderVisitProdDiscussion, ProviderVisitRqstSample, PrstCntntUsageSummary, PrvdAccountTerritorySummary, PrvdActvtyGoalMeasureProdt, PrvdActvtyPlanAdjProdt, PrvdEngmtComplianceCycle, PrvdVstSmplLmtDiscrepancy, PrvdVstSmplLmtTransaction, PtnrInvItmRecon, PtnrInvItmReconTrace, PtnrInvRecon, PtyCrPrflFinclAcctActvty, PtyFinclAstAddOwnrFldVld, PtyFinclAstLienFldVld, PtyFinclLiabAddBrwrFldVld, PublicComplaint, PublicProgram, PulseCheck, PulseCheckTemplate, PurchaseOrder, PurchaseOrderItem, PurchaseQuantityRule, PurchaserPlan, PurchaserPlanCareProgram, QuotLineItmUsageRsrcPlcy, QuotLineItmUseRsrcGrant, QuotUseRsrcChosenPolicy, Quote, QuoteLineItemGroupClass, QuoteLineItemInsProductClause, QuoteLineItemRelatedObject, RateAdjustmentByAttribute, RateAdjustmentByTier, RateCard, RateCardEntry, RatingFrequencyPolicy, RatingRequest, RatingRequestBatchJob, RebateClaim, RebateClaimAdjustment, RebateMemberAggregateItem, RebateMemberClaimAggregate, RebateMemberProductAggregate, RebatePartnerSpecialPrcTrm, RebatePayment, RebatePayoutAdjustment, RebatePayoutSnapshot, RebateProgram, RebateProgramMember, RebateProgramMemberPayout, RebateProgramPayoutPeriod, RebatePtnrSpclPrcTrmBnft, ReceivedDocument, ReceivedDocumentType, RecordAlert, RecordAlertActionableTarget, RecruitmentContentSection, RecruitmentPosting, RecruitmentPostingCntntSect, RecruitmentRequisition, RecruitmentRequisitionLoc, RecruitmentRequisitionPtcp, ReferenceDataLoadLog, Referral, RefrigerantEmssnFctr, RegAuthorizationTypeProduct, RegClCmplControlVer, RegClCmplPlcyClVer, Regulation, RegulationClause, RegulationClauseVersion, RegulationParticipant, RegulationVersion, RegulatoryAuthority, RegulatoryAuthorizationType, RegulatoryCode, RegulatoryCodeAssessmentInd, RegulatoryCodeViolation, RegulatoryTrxnFee, RegulatoryTrxnFeeItem, ReinsAgreementLineItem, ReinsPolicyBordereauFact, ReinsProtocolProdtComponent, ReinsuranceAgreement, ReinsuranceProtocol, ReinsuranceProtocolAgreement, Release, RentalCarEmssnFctr, RentalCarEnrgyUse, ReportedConsumption, ResearchStdyCmprGroupCndt, ResearchStdyCndtStatusPrd, ResearchStdyRandomization, ResearchStdySearchableField, ResearchStudy, ResearchStudyCandidate, ResearchStudyCmprGroup, ResearchStudyProtocolInfo, ResearchStudyRelation, ResearchStudyRndmBlockSlot, ResidentialLoanApplication, ResourceAbsence, RestrictedParty, RetailLocationGroup, RetailStore, RetailStoreGroupAssignment, RetailStoreKpi, RetailVisitKpi, ReturnOrder, ReturnOrderLineItem, RightsQuote, RightsQuoteLineItem, RightsQuoteLineMediaTitle, Risk, RiskBusinessOpsProcess, RiskCmplCtlVersion, RiskEvalSurveyInvt, RiskEvaluation, RiskPolicyClauseVersion, RiskRegClauseVersion, RiskRelatedScope, RiskScenario, RiskScopeType, Route, RsrchStdyRandomizationBlock, RsrchStdyRandomizationCrit, SOSSession, SalesAgreement, SalesContractLine, SalesContractLineItem, SampleRequest, SampleRequestItem, ScheduleBrdcstApptResource, ScheduleBroadcast, ScheduleBroadcastAppointment, ScheduleBroadcastTerritory, SchedulingWorkspace, SchedulingWorkspaceTerritory, Scope3CrbnFtprnt, Scope3EmssnSrc, Scope3PcmtItem, Scope3PcmtSummary, SearchableReferenceDocument, SecuritiesHolding, SellerProduct, SequenceGapReconciliation, SequencePolicy, ServiceAppointment, ServiceAppointmentAsset, ServiceAppointmentDependency, ServiceAppointmentGroup, ServiceContract, ServiceCrew, ServiceCrewMember, ServiceInfoRequestDetail, ServiceInfoRequestOperation, ServiceInfoRespOvrideOpt, ServiceInfoRespResourceUrl, ServiceInfoRespSuggestion, ServiceInfoResponseAction, ServiceInfoResponseCoverage, ServiceInfoRqstOpOutcome, ServiceInformationRequest, ServiceInformationResponse, ServicePoint, ServiceRequest, ServiceResource, ServiceResourceCostRule, ServiceResourceLeaveBalance, ServiceScheduleRequest, ServiceTerritoryRelationship, SharedSavingPaymentAgreement, Shift, ShiftPattern, ShiftPatternEntry, Shipment, ShipmentItem, ShippingCarrier, ShippingCarrierMethod, SignatureTask, SignatureTaskLineItem, SocialContributionSum, Solution, SourceCodeRepoProvider, SourceCodeRepository, SourceCodeRepositoryBranch, Specimen, Sprint, SrvcMgmntRecEvntAsgnt, StageTransitionEntry, StandardCareFeeAgreement, StgTrnsUndwrEvaluation, StnryAssetAnnualFact, StnryAssetCrbnFtprnt, StnryAssetCrbnFtprntItm, StnryAssetEnrgyUse, StnryAssetEnvrSrc, StnryAssetWaterActvty, StnryAssetWaterFtprnt, StnryAssetWtrFtprntItm, StockRotExecItem, StockRotationExecution, StoreActionPlanTemplate, StoreAssortment, StoreProduct, Subject, SubjectAssignment, SubjectMaterialTemplate, SubjectProduct, SuccessTeam, SuggestedAssessmentDef, SuggestedAssessmentReason, SupplementalCompensation, Supplier, SupplierProduct, Surcharge, SurveyQstnResponseOffline, SurveyQuestion, SurveyResponseOffline, SustainabilityCredit, SustainabilityPurchase, SustainabilityScorecard, SustainabilityStakeholder, SustainabilityTask, SustainabilityTaskGroup, SustnMaterialUseSummary, SvcInfoRelatedQuestionnaire, SvcInfoRespCoverageDetail, TagCategory, TaxDisclosureSummary, Team, TeamMember, TelemetryActionRelatedProcess, Term, TerrGeoAssignmentRule, TerrProvAffilAssignRule, TerritoryAccountScore, TerritoryAcctProdMsgScore, TerritoryAcctRcmdAction, TerritoryBusinessPlan, TerritoryContentTmplAsgnt, TerritoryProdtQtyAllocation, TerritoryUserDowntime, TimeSheet, TimeSheetEntry, TimeSheetEntryItem, TimeSheetValidationError, TimeSheetWageTypeSummary, Tour, TourTemplate, TrackedCommunication, TrackedCommunicationDetail, TrainingCourseParticipant, TransactionUsageEntitlement, TransitTime, TravelMode, TrnCourse, UnderwritingRule, UnderwritingRuleGroup, UnitOfMeasureConversion, UsageBillingPeriodItem, UsageCmtAssetRelatedObj, UsageCommitmentPolicy, UsageEntitlementAccount, UsageEntitlementBucket, UsageEntitlementEntry, UsageImpactFactor, UsageImpactGroup, UsageImpactGroupFactor, UsageImpactGroupPgmMeasure, UsageImpactGroupVersion, UsageOveragePolicy, UsageRatableSumCmtAssetRt, UsageRatableSummary, UsageResourcePolicy, UsageSummary, User, UserEsignVendorIdentifier, UserFinancialAuthority, UserLocationAssignment, UserReaction, Vehicle, VehicleAssetCrbnFtprnt, VehicleAssetEmssnSrc, VehicleAssetEnrgyUse, VehicleUserAssignment, VendorProject, VettingEvaluation, VideoCallPtcpRequest, VideoCallPtcpSession, ViolationEnforcementAction, ViolationType, ViolationTypeAssessmentInd, Visit, VisitedParty, VolunteerInitiative, VolunteerProject, Waitlist, WaitlistParticipant, WarrantyTerm, WarrantyTermCoverage, WasteFootprint, WasteFootprintItem, WatchlistedLearner, WebCartActivity, WebCartDocument, WebStoreMessageContent, WebStorePricebook, WorkCoaching, WorkGoal, WorkItem, WorkItemComponent, WorkItemComponentList, WorkOrder, WorkOrderDiagnosis, WorkOrderLineItem, WorkPlan, WorkPlanSelectionRule, WorkPlanTemplate, WorkPlanTemplateEntry, WorkProcedure, WorkProcedureStep, WorkReport, WorkReportLineItem, WorkStep, WorkStepTemplate, WorkTypeAssetType, WorkTypeCareSpecialty, WorkTypeCodeSetBundle, WorkTypeExtension, WorkTypeGroupRole, WorkTypeStep, WorkTypeStepLdTimeOvride, WorkerCompCoverageClass, WstDispoEmssnFctrSet, WstDispoEmssnFctrSetItm, YearlyUsageTrkgDataGap

  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Indicates the most recent date and time when the invitee responded to an invitation to an event.
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Contains optional text that the invitee can enter when responding to an invitation to an event.
  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: Indicates the invitee status with one of the following values:

  • Possible values:

    • New — New
    • Declined — Declined
    • Accepted — Accepted

    Uninvited and Maybe aren’t currently supported.

  • Invitee related lists display slightly different content. In the Salesforce mobile app, the invitee related list includes invitees only, whereas in the full site, it also includes the event owner. To reproduce the full site functionality in the Salesforce mobile app, use the following API queries. If you use Shared Activities in your Salesforce org, use this query:

    where Event_Id is the child event’s ID. If you don’t use Shared Activities, use this query:

    These queries get the main event’s relations and display them for the given child event. To further filter the results, add a WHERE clause.

  • Assigning resource attendance status: You can add a resource to an event only when the resource is available. The only attendance status that can be assigned to resources is Accepted. Events can’t be saved when resources you’ve added aren’t available.

  • Create an invitee if Shared Activities is enabled (or during the process of enabling it or rolling back): If the invitee is already a contact or lead, update IsInvitee to true.

    If the invitee is not already a contact or lead, create an EventRelation object for the invitee with IsInvitee set to true.

  • Create an invitee if Shared Activities is not enabled: Create an EventRelation object for the invitee.

  • Insert a contact or lead relation: ```

EventRelation er = new EventRelation(EventId = ‘00UD0000005zijH’, RelationId = ‘003D000000Q8aeV’, isParent = true, isInvitee = false); insert er;

EventRelation er = new EventRelation(EventId = ‘00UD0000005zijH’, RelationId = ‘003D000000Q8adV’); insert er;

  • Query invitee relations: ```

List inviteeRelations = [SELECT Id, Relation.Name FROM EventRelation WHERE EventId = ‘00UD0000005zijD’ AND isInvitee = true];

  • Update a contact or lead relation to a contact or lead invitee relation: ```

EventRelation er = [SELECT Id FROM EventRelation WHERE EventId = ‘00UD0000005zijD’ AND isParent = true and isInvitee = false LIMIT 1]; er.isInvitee = true; update er;

SELECT RelationId FROM EventRelation WHERE isInvitee = true AND eventId=‘[Event_Id]’

SELECT RelationId FROM EventRelation WHERE eventId=‘[Event_Id]’