GetSchemaRevs

Description

Returns a SchemaRev object as specified by the RevID parameter. The value of RevID can be -1 to get the latest SchemaRev object. You can use the API to get a specific schema rev instead of using SchemaRevs and iterating over the returned set of all schema revs. This API is particularly useful when the latest schema rev is needed, using -1 for the RevID. The actual rev number of the returned object can be obtained with GetRevID.

Syntax

Perl


$schema->GetSchemaRev(const LONG RevID); 

Examples

Perl

$schemas = $adminSession->GetSchemas();

$schema = $schemas->ItemByName($schema_name);

$latest_rev = $schema->GetSchemaRev(-1);