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

Get a list of Staff that have been assigned a particular type (such as trainer, supervisor etc). 

The staffType parameter must be a valid name of a staff type set up in VETtrak. Possible staff types can be obtained by calling the GetStaffTypes function. 

Each Staff member is represented by a TClie. The collection of staff is represented by a List of TClie

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

This function has security level "Protected", and can only be accessed by users that have explicitly been granted permission to the API.

C#
[WebMethod(Description = "Gets a list of staff members of a particular type")]
public TAuthClieList GetStaffForType(string token, string staffType);
Parameters 
Description 
string token 
String containing a token. 
string staffType 
The type of staff members to get. 

TAuthClieList : an Authenticated list of all Clients who are Staff Members with the specified type.

Copyright (c) VETtrak 2022. All rights reserved.