Resolve a List of Group Names to Keys

3 December 2021

  • C11 - added.
batchgroupnametokey (Commands)
TypeCorrade progressive command
Commandbatchgroupnametokey
DescriptionThe batchgroupnametokey command can be used to resolve multiple group names to group keys.
Permissionsinteract
Parametersgroup, password, groups
Last ChangesC11 - added.

The batchgroupnametokey command can be used to resolve multiple group names to group keys.

Command Required Parameters Required Corrade Permissions Example
batchgroupnametokey group, password, groups inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "batchgroupnametokey",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // resolve the following group keys
            "groups", wasListToCSV(
                [
                    "[Wizardry and Steamworks]:Announce",
                    "[Wizardry and Steamworks]:Support",
                    wasURLEscape("Chocolate & Milk")
                ]
            ),
            // send the results to this URL
            "callback", wasURLEscape(URL)
        ]
    )
);

The command will returns a CSV list of group names by keys - it is not guaranteed that a name could be resolved, in which case, the results will not contain the name and the resolved key.

Notes