This is in response to your PM. I have tried everything I can think of to come up with a solution which doesn't require a plug-in. Luckily, I think I've managed to do just that except there is one set-back. This method requires that callers enter their student number twice. I personally suggest that you cover this up by saying "Please confirm your student ID by entering it again" the second time so the request seems purposeful.
Here are the steps (keep in mind this is just a concept, I haven't actually tested this model):
1) Create an OGM that will answer the incoming calls.
2) In this OGM set the key response to data entry
3) Set it to use a pre-made Inclusive list of all valid student numbers to 'limit acceptable values'
4) Create a new OGM (don't forget to set the first OGM to go to the second OGM after the input is accepted)
5) Set the key response to data entry like the first OGM
6) Create a new blank text file in a folder of your choosing
7) Set the OGM to use the blank file you just made as an exclusive limit list
8) In the same (second) OGM, go to the Advanced tab and check 'Add Entry to Special Log'
This will allow you to append student numbers on to the exclusive list
9) In the 'log' field, put the path to the exclusive file and in the 'log line' field enter %variable%,
where %variable% is the variable name for the student number. Be sure to include the comma after %variable%
Note: if IVM is writing to the log file before checking the exclusive list, a new OGM may be required to write the log file afterwords otherwise the number will be added to the exclusive list before the student accessed their details.
10) If all goes well, students will be asked to enter their student ID, IVM then checks to make sure it is valid. Then students are asked to confirm their student ID at which point IVM checks it against an exclusive 'already used list'.. if everything checks out, the ID is written to the exclusive list so it can't be used again and then you can send the student to the OGM that will send the e-mail report.
The other method would be to use a plug-in that would check an external data file (exclusive list) and append the student ID to the file after it has been used.
In the end you'll probably end up having to use a plug-in anyway though in order to send the e-mails.