Other Flows
In addition to those that can be easily classified into either the flagging system or the email system, there are a few other pieces that make up the mentoring system.
The flow Mentoring - Update Teacher Portal URL is designed to populate the portal section on eMentors and Cloud Coach cases. The only true difference in the URL for teacher versus coordinator portal links is the addition of &user=teacher on the end. In fact, if that tag is anything other than teacher it will display the coordinator portal. You can learn more about why here.

graph TD
N2[Record-Triggered Flow] --> N3[Get Triggering Case Records]
N3 --> N4[Create Coordinator Link]
N4 --> N5[Update Coordinator Link]
N5 --> N6[Create Teacher Link]
N6 --> N7[Update Teacher Link]
N7 --> N8[End]
N2 -->|Error| N9[If An Error Happens]
class N2 click-step-N2;
class N3 click-step-N3;
class N4 click-step-N4;
class N5 click-step-N5;
class N6 click-step-N6;
class N7 click-step-N7;
class N9 click-step-N9;
classDef clickable stroke:#333,stroke-width:2px;
class N2,N3,N4,N5,N6,N7,N9 clickable;
×
Why &user=teacher
It was an intentional decision to use &user=teacher for the teacher portal, but not to use &user=coodinator or &user=company for the company coordinator portal.
The main difference lies in that teachers have access to student messages, and they should be the only ones who do. While it isn't necessarily "protected information" it also isn't information that just anyone should be allowed to have.
If a coordinator, or any other related party, recieved a link that ended in &user=coordinator, it wouldn't be that difficult to realize that simply changing the user tag could change the view. The decision was made in line with our best practices to try and protect student data to a reasonable extent.
×
Record-Triggered Flow
This flow will trigger whenever a case is created OR updated and the RecordTypeId equals either eMentors (012A0000000z1RhIAI) or Cloud Coach (TBD).
×
Get Triggering Case Records
Get the case where CaseId equals that of the triggering case.
×
Create Coordinator Link
Using the case record that triggered the flow, create the coordinator link by adding each piece of the link to a variable that can then be easily changed:
- Add
https://mentoring.bestprep.org/s/connection-overview?caseId= to variable URL
- Add
CaseId of the triggering case to variable URL
- Add
&PW= to variable URL
- Add
Case_Password__c to variable URL
×
Update Coordinator Link
Take the variable URL and update field Coordinator_Portal_URL__c on the triggering case.
×
Create Teacher Link
Using the case record that triggered the flow, create the teacher link by adding each piece of the link to a variable that can then be easily changed:
- Add
https://mentoring.bestprep.org/s/connection-overview?caseId= to variable URL
- Add
CaseId of the triggering case to variable URL
- Add
&PW= to variable URL
- Add
Case_Password__c to variable URL
- Add
&user=teacher to variable URL
×
Update Teacher Link
Take the variable URL and update field Teacher_Portal_URL__c on the triggering case.
×
Uh-oh... there was an error.
If for any reason an error should occur, Salesforce will not allow any user to save a case while the error is happening.