get_activity_for_collection

Gets activity for a collection.

Path:
/lib/server/get_activity_for_collection.js

Parameters:

NameTypeDescription
idStringThe unique ID of the collection to retrieve activity for.

Example Request:

/redrock/query

{
	"Script":"@/lib/server/get_activity_for_collection.js(id:'Services With Issues')"
}

Example Response:

{
    "success": true,
    "Result": {
        "IsAggregate": false,
        "Count": 0,
        "Columns": [
            {
                "Name": "When",
                "IsHidden": false,
                "DDName": "WhenOccurred",
                "Title": "When",
                "DDTitle": "When Occurred",
                "Description": null,
                "Type": 3,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            {
                "Name": "Detail",
                "IsHidden": false,
                "DDName": "EventMessage",
                "Title": "Detail",
                "DDTitle": "Message",
                "Description": null,
                "Type": 12,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            {
                "Name": "EventType",
                "IsHidden": false,
                "DDName": "EventType",
                "Title": "Type",
                "DDTitle": "Type",
                "Description": null,
                "Type": 12,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            },
            {
                "Name": "AuditId",
                "IsHidden": false,
                "DDName": "AuditId",
                "Title": "AuditId",
                "DDTitle": "AuditId",
                "Description": null,
                "Type": 12,
                "Format": null,
                "Width": 0,
                "TableKey": "NotAKey",
                "ForeignKey": null,
                "TableName": "Event"
            }
        ],
        "FullCount": 0,
        "Results": [],
        "ReturnID": ""
    },
    "Message": null,
    "MessageID": null,
    "Exception": null,
    "ErrorID": null,
    "ErrorCode": null,
    "InnerExceptions": null
}