IPASIService2021GetOrganizationAssociation Method Provincial Approach to Student Information API
This service allows an organization to determine its association to a specified list of students or all the students for a School.

Namespace: PASI.ServiceContract
Assembly: PASI.ServiceContract (in PASI.ServiceContract.dll) Version: 9.25.26.0 (9.25.26.0)
Syntax

OrganizationAssociationResponse GetOrganizationAssociation(
	OrganizationAssociationRequest request
)

Parameters

request
Type: PASI.DataContract.V2009OrganizationAssociationRequest
The request OrganizationAssociationRequest contains a list of state province ids to consider. If no state province Ids are passed the OrganizationCode on the request will be used to return all students if the code is a School code.

Return Value

Type: OrganizationAssociationResponse
The response OrganizationAssociationResponse contains a list of organization associations which shows the association each student has with the client's organization. If a Student's StateProvinceId has been deactivated only a client representing the Ministry is associated to the student.

Service Validations

The following codes can be returned from the service operation. This list also shows core alerts that could be generated as a result calling this service. These codes are in addition to the standard set of codes that can be returned defined as in the Approach to Error Reporting. Click the link for the details.

5001
Remarks

It is possible to pass a School Authority code to this service as well but it will only return students created by the passed in authority that have no enrolments. This is to cover the period where a school authority may create a student but there is no enrolment yet for that student.

Request and Response Class Diagram



Request Fields

Full Property NameTypeRequiredOther Attributes
CallerInfoCallerInfoYes
CallerInfo.ClientMessageIDStringYesValue must be no more than 50 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.SentUtcTimeDateTimeYes
CallerInfo.SoftwareSoftwareYes
CallerInfo.Software.BuildNumberStringYesValue must be no more than 30 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.Software.ManufacturerStringYesValue must be no more than 100 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.Software.ProductStringYesValue must be no more than 100 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.Software.VersionStringYesValue must be no more than 30 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.UserUserYes
CallerInfo.User.IPAddressStringYesValue must be no more than 50 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.User.LocalIDStringYesValue must be no more than 50 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.User.NameStringYesValue must be no more than 100 characters Value must not have control characters, leading, trailing or multiple embedded spaces. Content must not match regular expression: ^\s|\s{2,}|\s$|[\x00-\x19]|[\x7F-\x9F]|[^\x00-\xFF]
CallerInfo.User.OrganizationCodeStringYesValue must be no more than 6 characters
OrganizationCodeStringYesValue must be no more than 6 characters
StateProvinceIdsList<String>No


Response Fields

Full Property NameTypeRequiredOther Attributes
OrganizationAssociationResponse.OrganizationAssociationsList<OrganizationAssociation>Yes
OrganizationAssociationResponse.OrganizationAssociations.AssociationTypeStringYesValue must be an appropriate OrganizationAssociationType code value
OrganizationAssociationResponse.OrganizationAssociations.IsStudentRecordCustodianBooleanYes
OrganizationAssociationResponse.OrganizationAssociations.StateProvinceIdStringYes
OrganizationAssociationResponse.OrganizationAssociations.SyncStatusStringYes
See Also

Reference