ListGroups

Retrieves the list of all group names in the Repository, stored in a JSONStringArray.

Syntax ​

ListGroups(): JSONStringArray

Example

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).

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"]'