|
AddKeySetsInserts 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
ExamplesBasic examplesIn each of these examples, the object JavaScript
VB Script
Inserting a rowIn most cases, you won't need to insert or update a row in a script, as this can be easily done through the the Push to Repository action task. However, in some cases you might want to script it for simplicity's sake.
Tip: to update a row instead of adding it, use the GetValue() function to get the KeySet ID; then update each individual value using SetValueByID() (see GetValue and SetValueByID). Sample return valueThe method returns a JSONIntegerArray containing the ID's of all keysets inserted into GroupName:
|
|