Send Group Notices, Retrieve Past Notices and Accept or Decline Notice Attachments

6 October 2016

  • Release 9.133 - The command now can take a path instead of a name.

21 May 2016

  • Release 9.78 - added optional parameter target.

4 November 2015

  • Release 9.36 - added the required action parameter with send, list, accept or decline as possible values.

24 September 2015

  • Release 9.18 - added permissions optional parameter.

21 December 2014

  • Release 7.34 - added group Corrade permission.
notice (Commands)
TypeCorrade progressive command
Commandnotice
DescriptionThe notice command sends a notice to a configured group or a group specified by the optional target parameter.
Permissionsgroup
Parametersgroup, password, action
Last ChangesRelease 9.133 - The command now can take a path instead of a name.

The notice command sends a notice to a configured group or a group specified by the optional target parameter.

Command Required Parameters Required Corrade Permissions Required Group Abilities Example
notice group, password, action group Notices->Send Notices
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "notice",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "action", "send",
            "subject", "My store",
            "message", "Store is updated!"
        ]
    )
);
Parameter Possible Value Second Parameters Description Example
action send message The message to send in the notice.
subject Send a notice.
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "notice",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "message", "Store is updated!",
            "subject", "Updates",
            "action", "send"
        ]
    )
);
item Sends an attachment along with the notice.
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "notice",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "message", "A gift for our members!",
            "subject", "Gift",
            "item", wasURLEscape("/My Inventory/hats/Mesh Hat"),
            "action", "send"
        ]
    )
);
permissions Sets the permissions on the attachment when sending the notice where the to set on the attachment before sending.
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            // Send a notice with:
            // The message set to "test message",
            // The subject set to "test subject",
            // The attachment named "test notecard"
            // And set the permissions for the
            // next owner of the attachment to:
            // modify / copy / no transfer
            "command", "notice",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "item", "test notecard",
            // modify / copy / no transfer
            "permissions", "c--mvt------------c--mv-c--mvt",
            "message", "test message",
            "subject", "test subject",
            "action", "send",
            "callback", wasURLEscape(URL)
        ]
    )
);
list List all notices as a CSV list of asset (set to the asset type if the notice has an attachment or Unknown) by name (set to the name of the person that has sent the notice) by attachments (set to True in case the notice contains an attachment) by notice (set to the UUID of the notice by subject (set to the subject of the notice) by time set to the Unix time when the notice was sent (in UTC).
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "notice",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "action", "list",
            "callback", wasURLEscape(URL)
        ]
    )
);
accept notice (retrieved by the list action) or agent by UUID (or firstname and lastname), session and folder retrieved from the notice notification Accept a notice attachment.
decline Decline a notice attachment.
Optional Parameter Possible Value Description
target A group name or UUID. The group to act upon. If this parameter is omitted, then the command acts upon the configured group passed to the group parameter.

For more details on the permission notation please see the Corrade permission notation page.


secondlife/scripted_agents/corrade/api/progressive/commands/notice.txt ยท Last modified: 2017/02/22 18:29 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.