8.5

AddKeySets
Inserts a new keyset inside GroupName and assigns values to keys as specified in KeyValues. Every key
specified in KeyValues must exist otherwise an error is raised. However, it is not required to specify all
available keys in KeyValues. Only the keys specified are updated in GroupName while unspecified keys
are set to an empty string.
Syntax
AddKeySets(GroupName: string, KeyValues: JSONObjectArray): JSONIntegerArray
Examples
JavaScript
repoObject.AddKeySets("Users", '[{"FirstName": "John","LastName": "Smith"},
{"FirstName": "Richard", "LastName": "Doe"}]');
VB Script
repoObject.AddKeySets "Users","
[{""FirstName"":""John"",""LastName"":""Smith""},
{""FirstName"":""Richard"",""LastName"": ""Doe""}]"
Sample return value
The method returns a JSONIntegerArray containing the ID's of all keysets inserted into GroupName:
'[131,132]'
AddValue
Creates a new KeySet by assigning Value to the key KeyName in Group GroupName. Note that
KeyName must exist in GroupName, otherwise an error is raised. See AddKey() for information on adding
a key to a group. Upon successful completion, the method returns the ID of the newly created KeySet.
Syntax
AddValue(GroupName: string, KeyName: string, Value: string): integer64
Examples
JavaScript