While every attempt is made to create consistent recurring sessions for each team, topic, and season, realities such as weather, COVID, and school events may force a coach to redefine the focus of a given session on that same day or week.
Presently, at the outset of a season, the session type, dates, and coach assignments are pre-populated in the session table in Salesforce via a bulk planning and import process that is neither consistent nor reliably accurate when attendance is taken.
Coaches and their Supervisors need to be able to change a session’s properties to reflect the reality of that event at any time.
Presently, the coach uses the attendance app to select the school, team, and session date from the prepopulated data set. This flow should provide means to alter, or create, a session to meet their needs.
SELECT Anticipated_Players_Enrollment__c,
Coach_Soccer__c,
Coach_Writing__c,
CreatedById,
CreatedDate,
Date_Last_Session_Attended__c,
Id,IsDeleted,
Name,
Number_of_Attendance_Completed__c,
Number_of_Attendance_Incomplete__c,
Number_of_Students_Absent__c,
Number_of_Students_Present__c,
Number_of_Team_Seasons__c,
Partnership__c,
Percent_of_Attendance_Completed__c,
Percent_of_Students_Present__c,
Schedule__c,
School_Site__c,
SCORES_Program_Coordinator__c,
SCORES_Program_Manager__c,
Season_End_Date__c,
Season_Start_Date__c,
Season__c,
SystemModstamp,Team__c,
Total_Number_of_Players__c,
Total_Number_of_Sessions__c
FROM Team_Season__c
WHERE (Coach_Soccer__c != ':coachId' OR Coach_Writing__c != ':coachId' OR SCORES_Program_Coordinator__c != ':coachId' OR SCORES_Program_Manager__c != ':coachId')
AND (Team__r.School_Site__r.Region__c = 'Oakland')
AND (Season__c = 'a0o1T000005DWrBQAW')
SELECT Id FROM Season__c ORDER BY CreatedDate DESC limit 1
SELECT Team__r.School_Site__r.Region__c FROM Team_Season__c WHERE (Coach_Soccer__c != ':coachId' OR Coach_Writing__c != ':coachId' OR SCORES_Program_Coordinator__c != ':coachId' OR SCORES_Program_Manager__c != ':coachId') AND ID = ':teamSeasonID'
3. Then build Another API, to update Salesforce information for one one of these TEAM SEASON fields
1. Coach Soccer, Coach Writing, SCORES Program Coordinator,SCORES Program Manager
4. Then after update coach will redirected to MY TEAM to take normal attendance flow
5. Enhancement request for future - Text confirmation from second coach approving the change.
6. SELECT Anticipated_Players_Enrollment__c,Coach_Soccer__c,Coach_Writing__c,CreatedById,CreatedDate,Date_Last_Session_Attended__c,Id,IsDeleted,LastActivityDate,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate,Name,Number_of_Attendance_Completed__c,Number_of_Attendance_Incomplete__c,Number_of_Students_Absent__c,Number_of_Students_Present__c,Number_of_Team_Seasons__c,Partnership__c,Percent_of_Attendance_Completed__c,Percent_of_Students_Present__c,Schedule__c,School_Site__c,SCORES_Program_Coordinator__c,SCORES_Program_Manager__c,Season_End_Date__c,Season_Start_Date__c,Season__c,SystemModstamp,Team__c,Total_Number_of_Players__c,Total_Number_of_Sessions__c FROM Team_Season__c WHERE (Coach_Soccer__c != '0031T00003OcljGQAR' OR Coach_Writing__c != '0031T00003OcljGQAR' OR SCORES_Program_Coordinator__c != '0031T00003OcljGQAR' OR SCORES_Program_Manager__c != '0031T00003OcljGQAR') AND (Team__r.School_Site__r.Region__c = 'Oakland') AND (Season__c = 'a0o1T000005DWrBQAW')
SELECT Anticipated_Players_Enrollment__c,Coach_Soccer__c,Coach_Writing__c,CreatedById,CreatedDate,Date_Last_Session_Attended__c,Id,IsDeleted,LastActivityDate,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate,Name,Number_of_Attendance_Completed__c,Number_of_Attendance_Incomplete__c,Number_of_Students_Absent__c,Number_of_Students_Present__c,Number_of_Team_Seasons__c,Partnership__c,Percent_of_Attendance_Completed__c,Percent_of_Students_Present__c,Schedule__c,School_Site__c,SCORES_Program_Coordinator__c,SCORES_Program_Manager__c,Season_End_Date__c,Season_Start_Date__c,Season__c,SystemModstamp,Team__c,Total_Number_of_Players__c,Total_Number_of_Sessions__c,Coach_Soccer__r.Name,Coach_Writing__r.Name,Team__r.Name,Season__r.Name FROM Team_Season__c WHERE Coach_Soccer__c = ':coachId' OR Coach_Writing__c = ':coachId'
SELECT Anticipated_Players_Enrollment__c,Coach_Soccer__c,Coach_Writing__c,CreatedById,CreatedDate,Date_Last_Session_Attended__c,Id,IsDeleted,LastActivityDate,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate,Name,Number_of_Attendance_Completed__c,Number_of_Attendance_Incomplete__c,Number_of_Students_Absent__c,Number_of_Students_Present__c,Number_of_Team_Seasons__c,Partnership__c,Percent_of_Attendance_Completed__c,Percent_of_Students_Present__c,Schedule__c,School_Site__c,SCORES_Program_Coordinator__c,SCORES_Program_Manager__c,Season_End_Date__c,Season_Start_Date__c,Season__c,SystemModstamp,Team__c,Total_Number_of_Players__c,Total_Number_of_Sessions__c,Coach_Soccer__r.Name,Coach_Writing__r.Name,Team__r.Name,Season__r.Name FROM Team_Season__c WHERE Coach_Soccer__c = ':coachId' OR Coach_Writing__c = ':coachId' OR SCORES_Program_Coordinator__c = ':coachId' OR SCORES_Program_Manager__c = ':coachId'
SELECT Contact__r.Name,Contact__r.FirstName,Contact__r.LastName,Contact__r.Birthdate,Contact__r.Gender__c,Contact__r.Ethnicity__c,Contact__r.Zip_First_Five_Digits__c,Contact__c,CreatedById,CreatedDate,End_Date__c,Id,IsDeleted,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate,Name,Number_of_Enrollments__c,Start_Date__c,SystemModstamp,Team_Season__c FROM Enrollment__c WHERE Team_Season__c = ':teamseasonid' AND (Team_Season__r.Coach_Soccer__c = ':coachid' OR Team_Season__r.Coach_Writing__c = ':coachid')
SELECT Contact__r.Name,Contact__r.FirstName,Contact__r.LastName,Contact__r.Birthdate,Contact__r.Gender__c,Contact__r.Ethnicity__c,Contact__r.Zip_First_Five_Digits__c,Contact__c,CreatedById,CreatedDate,End_Date__c,Id,IsDeleted,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate,Name,Number_of_Enrollments__c,Start_Date__c,SystemModstamp,Team_Season__c FROM Enrollment__c WHERE Team_Season__c = ':teamseasonid' AND (Team_Season__r.Coach_Soccer__c = ':coachid' OR Team_Season__r.Coach_Writing__c = ':coachid' OR Team_Season__r.SCORES_Program_Coordinator__c = ':coachid' OR Team_Season__r.SCORES_Program_Manager__c = ':coachId')