TheAlphaSchoolSystemPTYLTD / student-details

Student Details API
13 stars 10 forks source link

Mapping Parent Details to Email Address #49

Closed eric-sleeman closed 1 year ago

eric-sleeman commented 2 years ago

I am currently trying to map parent records to email addresses, i.e first name and last name to an emil address. I am currently hitting the GetParentDetails and GetCommunicationRules endpoints and linking them using the student code. However I am unable to marry up email addresses with parent names correctly as the email addresss is not associated with a single parent.

Is there a way to determine which email address belongs to which parent?

This is a snippet from the GetParentDetails endpoint, Is there a way to populate this email field? image

eric-sleeman commented 2 years ago

For anyone else that may be having a similar issue, I have an update on this. I was able to solve this by using the "address_person_posn" field from the getCommunicationRulesDetails endpoint and mapping this number to the "Person1/Person2" fields returned by the getParentDetails endpoint. These linkes were verry helpful in finding a solution. Address Tab Config Communication rules config