2022.2

Table Of Contents
repoObject.RenameGroup "Users", "Customers"
RenameKey
Renames key oldName to newName in group GroupName. While this operation has no impact on the
data stored in that Group, it does require any plugin and/or script that uses oldName to be modified to
refer to newName.
Syntax
RenameKey(GroupName: string, oldName: string, newName: string)
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
repoObject.RenameKey("Users", "LastName", "SurName");
VB Script
repoObject.RenameGroup "Users", "LastName", "SurName"
SetValue
Updates multiple keysets in group GroupName by setting the key KeyName to Value for all keysets
that match Condition. The condition is specified using basic SQL WHERE syntax. The Condition may
be left empty in which case all keysets in GroupName are updated. Note that KeyName must exist in
GroupName, otherwise an error is raised. The method returns an array of the keyset ID's that were
updated ([1,2] ), or an empty array ([] ) if no keysets were updated.
Note: There is currently no Update feature in the API for a whole KeySet (a row).
Syntax
SetValue(GroupName: string, KeyName: string, Value: string, Condition:
string): string
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
Page 160