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

Get all Enrolment Units for a Contract. 

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

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. 

Requires a valid registration key entry for the Trainee Management feature. 

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 contract with the specified ID")]
public TAuthEnunList GetUnitsForContract(string sToken, int iCont_id);
Parameters 
Description 
string sToken 
String Token. 
int iCont_id 
Integer ID of Contract. 

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

Copyright (c) VETtrak 2022. All rights reserved.