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

Retrieves a list of task definitions for an occurrence or booking.

C#
[WebMethod(Description = "Retrieves a list of tasks for an occurrence")]
public TAuthTaskList GetTasksForOccurrence(string token, int occurrenceId);
Parameters 
Description 
string token 
String containing a token. 
int occurrenceId 
Integer occurrence ID of the occurrence or booking to retrieve task definitions for. 

TAuthTaskList containing the list of task definitions from the client's enrolments

This function retrieves a list of all task definitions that are in a single occurrence or booking. 

The occurrenceId parameter is the ID of the occurrence to retrieve task definitions for. 

Each task definition is represented by a TTask object. The list of task definitions is in the returned TAuthTaskList object. 

To get information about results, get enrolled tasks by using other functions such as GetEnrolledTasksForClient or GetEnrolledTasksForOccurrence

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

Requires a valid registration key entry for the Tasks feature.

Copyright (c) OzSoft Solutions 2016. All rights reserved.