var dictObj = shell.serviceManager.basics.dictionary; dictObj.setValueForKey("John", "FirstName"); dictObj.setValueForKey("Doe", "LastName"); dictObj.setValueForKey("35", "Age"); //get all the key names into an array object. See array class for more information var allValues = dictObj.allValues();