Resolve a List of Group Keys to Names

3 December 2021

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

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

Command Required Parameters Required Corrade Permissions Example
batchgroupkeytoname group, password, groups inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "batchgroupkeytoname",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            // resolve the following group keys
            "groups", wasListToCSV(
                [
                    "098feaa5-805e-5778-3bf9-002089ad63af",
                    "e269893f-a570-0087-930e-6ba2a0b77f9c",
                    "bdfa1f62-0df1-7c8d-1731-02f8b3322882"
                ]
            ),
            // send the results to this URL
            "callback", wasURLEscape(URL)
        ]
    )
);

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

Notes