ASP.NET VETtrak API web services
ContentsIndexHome
PreviousUpNext
VT_API.GetUnitsForEnrolment Method

Get all Enrolment Units for an Enrolment. 

Returns an Authenticated Enrolment Unit List containing all of the enrolment units for a given enrolment. 

Each Enrolment Unit is represented by a TEnun. The collection of Enrolment Units is represented by a List of TEnun

A token is passed for authentication. If the authentication fails, or other errors occur, no enrolment units are returned. The result of the authentication is represented by a TAuthenticate object. 

This function has security level "Restricted". Users that have explicitly been granted permission to the API can use it with any parameters, otherwise, the logged-in client can only access their own data.

C#
[WebMethod(Description = "Gets a list of units for the enrolment with the specified ID")]
public TAuthEnunList GetUnitsForEnrolment(string sToken, int iEnro_id);
Parameters 
Description 
string sToken 
String Token. 
int iEnro_id 
Integer ID of Enrolment. 

TAuthEnunList : an authenticated list of all Enrolment Units for the Enrolment.

Copyright (c) VETtrak 2022. All rights reserved.