American-School-of-the-Hague / psd2l-plugin

PowerQueries for PowerSchool SIS for use with Data Export Manager (DEM)
GNU General Public License v3.0
3 stars 3 forks source link

Athletics Integration #7

Closed txoof closed 11 months ago

txoof commented 2 years ago

Add integration from SIS for Athletics

txoof commented 2 years ago

Test if this will work as a PowerQuery

SELECT distinct
    -- Students.LastFirst,
    'course offering' as "type",
    'UPDATE' as "action",
    Gen.Name AS Activity,
    PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) AS
Enrolled_in_Activity
    -- STUDENTS.STUDENT_NUMBER as child_code,
    /* REGEXP_REPLACE(U_STUDENTSUSERFIELDS.EMAILSTUDENT, '(^.*)(@.*)',
'\1') as "child_code", */
    -- 'Learner' as "role_name"
FROM
    Students
    JOIN Gen ON Gen.cat='activity'
WHERE
    Students.Enroll_Status = 0
    and STUDENTS.GRADE_LEVEL >=5
    AND PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) IS NOT NULL
    AND PS_CustomFields.GetStudentsCF(Students.ID,Gen.Value) >=1
    AND Gen.Name LIKE '%Athletics - %'
ORDER BY
    -- Students.LastFirst,
    Gen.Name
txoof commented 2 years ago

Query works -- need to resolve way to set term number

txoof commented 2 years ago

May not need to worry about terms -- could just use a term called "Athletics"

Check in with Athletics department regarding this.

txoof commented 11 months ago

No one wants this. No one needs this. Closing.