8.5

email for first user named Smith
repoObject.GetValue("Users", "email", ""); // retrieves email for first user
VB Script
repoObject.GetValue "Users", "email", " LastName=""Smith"" AND
FirstName=""John"" " // retrieves email for John Smith
repoObject.GetValue "Users", "email", " LastName=""Smith"" " // retrieves
email for first user named SmithrepoObject.GetValue "Users", "email", "" //
retrieves email for first user
ListGroups
Retrieves the list of all group names in the Repository, stored in a JSONStringArray.
Syntax
ListGroups(): JSONStringArray
Example
JavaScript
var repoObject = new ActiveXObject("RepositoryLib.WorkflowRepository");
var myList = JSON.parse(repoObject.ListGroups());
for (var i=0; i<myList.length; i++) {
// Log all group names to the console
Watch.Log(myList[i],2);
}
Sample return value
'["Users","Cart","Orders"]'
ListKeys
Retrieves the list of all Key names and data types in Group GroupName, stored in a JSONStringObject.
You should use JSON.Parse() to convert the string into an actual JavaScript object. You can then use the
for…in construct to list the different properties for that object (i.e. the keys in the group).
Syntax
ListKeys(GroupName: string):JSONStringArray