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

Get the Unit List for an Occurrence or Booking. 

This is a listing of all Units linked to an Occurrence or Booking. 

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

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

Requires a valid registration key entry for the Short Courses feature. 

This function has security level "Unrestricted", and can be accessed by any authenticated user.

C#
[WebMethod(Description = "Gets a list of units within the occurrence with the specified ID")]
public TAuthUnitList GetUnitsForOccurrence(string sToken, int iID);
Parameters 
Description 
string sToken 
String containing a token. 
int iID 
Integer containing the ID of the Occurrence or Booking. 

TAuthUnitList : an authenticated list of all Units for the Occurrence.

Copyright (c) VETtrak 2022. All rights reserved.