School Calendar Set Up - PosiEd
A field-by-field setup guide for the School Calendar panel — covering Student, Staff, and Carer, in both the internal Account record page and the Experience Cloud portals.
School Data to be configured by admins and functional consultants.
Classes: SelectCalendarController.cls, CalendarController.cls
1. School Calendar record setup
Create the School Calendar record
Set Status to Current, and Educational Institution to the school this calendar belongs to.
Set a publish date range that covers today
Publish Start must be on or before today, and Publish End on or after today. Outside that date range, the school calendar is treated as if it does not exist.
Set a Calendar Type
The panel groups calendars under their Calendar Type heading (e.g. "School", "Sports"). A blank type does not error, it just never renders.
Important Note: A calendar that looks fully configured but never appears in anyone’s list almost always has a blank Calendar Type, or a publish date range that has already lapsed.
Prepare the Cohort with session records and relate them to the created School Calendar to show individual class session to the calendar:
Link the calendar to a Cohort
Create a School Calendar Cohort record joining the School Calendar to one or more Cohorts.
Confirm the Cohort has Sessions
Each Cohort Session must point at a real Session record, one with Session populated, not blank.
Confirm those sessions have Start/End times
The Session needs both Start and End populated, and they need to fall inside whatever date range is currently on screen.
Define Calendar Colour – colour hex code - falls back to grey(#939393 ) when empty
Give every School Calendar a distinct soft-color theme. Selecting a School Calendar in the UI applies a unique palette to all its cohort sessions, grouped by category, for quick visual identification. e.g #DD45E8 or DD45E8, either of the two is valid
Preview:
2. Who Can See It - Person Accounts – internal and portal
Student
Resolved by the student’s own record — no linking object required.
Internal
Account record page, viewing the student’s own Person Account.
▪ Account Student Status = Current
▪ The Account’s Contact has Primary Educational Institution set to the school
Resolved via: Contact.PosiEd__Primary_Educational_Institution__c
Portal
Experience Cloud site with the calendar’s isStudentPortal attribute enabled.
▪ Portal login’s User.ContactId points at the student’s Contact
▪ That same Contact has Primary Educational Institution set
Resolved via: same Contact field, reached through the logged-in User
Staff
Resolved through an Employee Role record, which can link to either an Account or a User.
Internal
Account record page, viewing the staff member’s own Person Account.
▪ Account Staff Status = Current
▪ An Employee Role with Employee Account set to that Account
▪ That Employee Role has Educational Institution set
Resolved via: Employee_Role__c.PosiEd__Employee_Account__c = staff’s Account
Portal
Experience Cloud site with the calendar’s isStaffPortal attribute enabled.
▪ An Employee Role with User set to the portal login, or
▪ An Employee Role with Employee Account set to that User’s Account (fallback)
▪ Either way, Educational Institution must be set
Resolved via: Employee_Role__c.PosiEd__User__c, falling back to PosiEd__Employee_Account__c
Carer
Resolved through every child linked via Student Comms — a carer with three active children can see three schools’ calendars at once.
Internal
Account record page, viewing the carer’s own Person Account.
▪ Account Carer Status = Current
▪ A Student Comms record: Active = TRUE, Related Contact = carer’s Contact, Student = the child
▪ The child’s Contact has Primary Educational Institution set
Resolved via: Student_Comms__c → Student.PosiEd__Primary_Educational_Institution__c
Portal
Experience Cloud site with the calendar’s isParentPortal attribute enabled.
▪ Portal login’s User.ContactId matches the Student Comms’ Related Contact
▪ Same Student Comms and child Contact requirements as Internal
Resolved via: same chain, reached through the logged-in User’s Contact
Troubleshooting
What a symptom usually means, and where to look first.
Symptom | Likely cause | Check |
"No school calendars available at this time" | The user’s school never resolved | The persona table in Section 2: confirm the status field and linking record for this user |
Calendar Type is missing from the picklist entirely | A School Calendar exists but is filtered out | Status, publish date range, and Calendar Type on the School Calendar record |
Calendar ticks on, but the grid stays empty | No session data in the visible date range | School Calendar Cohort → Cohort Session → Session Start/End, per Section 1 |
The calendar area does not render at all, regardless of data | Component/display issue, not a data gap | Not covered by this guide, flag to the development team |
Field Reference
Every object and field named above, in one place.
Object | Field(s) | Used for |
Contact | PosiEd__Primary_Educational_Institution__c | Student’s own school; also the child’s school for Carer resolution |
Account (Person Account) | PosiEd__Student_Status__pc, PosiEd__Staff_Status__pc, PosiEd__Carer_Status__pc | Gates which persona logic runs on the Internal record page |
PosiEd__Employee_Role__c | PosiEd__Employee_Account__c, PosiEd__User__c, PosiEd__Educational_Institution__c | Staff’s school, Internal (Account) and Portal (User, with Account fallback) |
PosiEd__Student_Comms__c | PosiEd__Active__c, PosiEd__Related_Contact__c, PosiEd__Student__c | Links a Carer to each child, for both Internal and Portal |
PosiEd__School_Calendar__c | PosiEd__Status__c, PosiEd__Publish_Start__c, PosiEd__Publish_End__c, PosiEd__Calendar_Type__c, PosiEd__Educational_Institution__c,PosiEd__Calendar_Colour__c | The calendar record every persona is ultimately looking for. Colour must be a hex code. Default is grey(#939393 ) when empty. |
PosiEd__School_Calendar_Cohort__c | PosiEd__School_Calendar__c, PosiEd__Cohort__c | Joins a calendar to the cohorts whose sessions should appear on it |
PosiEd__Cohort_Session__c | PosiEd__Cohort__c, PosiEd__Session__c | Joins a cohort to its scheduled sessions |
PosiEd__Session__c | PosiEd__Start__c, PosiEd__End__c | Must fall inside the visible calendar date range to render |