2022.2

Table Of Contents
Examples
In each of these examples, the object repoObject is deemed having been obtained through a call to
the COM object "RepositoryLib.WorkflowRepository" (see "Obtaining an instance of the Repository
Object" on page147).
JavaScript
var myValue = repoObject.GetValue("Users", "email", " LastName='Smith' AND
FirstName='John' "); /* retrieves email for John Smith */
var myValue = repoObject.GetValue("Users", "email", " LastName='Smith' "); /*
retrieves email for first user named Smith */
var myValue = repoObject.GetValue("Users", "email", ""); /* retrieves email
for first user */
VB Script
myValue = repoObject.GetValue("Users", "email", " LastName=""Smith"" AND
FirstName=""John"" ") /* retrieves email for John Smith */
myValue = repoObject.GetValue("Users", "email", " LastName=""Smith"" ") /*
retrieves email for first user named Smith */
myValue = repoObject.GetValue("Users", "email", "") /* retrieves email for
first user */
Retrieving a KeySet ID
This JavaScript example retrieves the KeySet ID, which is then used to update values in the row.
/* Get KeySet ID */
var repoObject = new ActiveXObject("RepositoryLib.WorkflowRepository");
var keySetID = repoObject.GetValue("customers", "ID", "Cus-
tomerID='CURD654321'");
/* Update Values */
repoObject.SetValueByID("customers", "FormOfAddress", "Mr.", keySetID);
repoObject.SetValueByID("customers", "Country", "US", keySetID);
repoObject.SetValueByID("customers", "Language", "EN", keySetID);
ListGroups
Retrieves the list of all group names in the Repository, stored in a JSONStringArray.
Syntax
ListGroups(): JSONStringArray
Page 155