Toggle menu

deleteHistory()

Description

This function deletes one history from the database. When a history is deleted its ID and the time its was deleted are recorded in the database.

When a history is deleted, any History Digest API it forms part of is automatically updated (ie the relevant row is also deleted).

Parameters

NameTypeDescription
datasourceString, optionalThe name of the datasource where this history is logged. This parameter overrides the same parameter in the worker configuration which in turn overrides the default datasource
idString, optionalThe unique internally generated key that identifies this history. Do not specify id and label parameters together
labelaString/int/real/bool, required if id is not setThe first part of the unique compound key that identifies this history.
labelbString/int/real/bool/null, optionalThe second (optional) part of the unique compound key that identifies this history
labelcString/int/real/bool/null, optionalThe third (optional) part of the unique compound key that identifies this history
labeldString/int/real/bool/null, optionalThe fourth (optional) part of the unique compound key that identifies this history
labeleString/int/real/bool/null, optionalThe fifth (optional) part of the unique compound key that identifies this history

Returns

If the deleteHistory() operation was successful then the "result" structure will contain the boolean value true.

Example

function(params, credentials) {
    let resp = this.callWorkerMethod("history", "deleteHistory", {
        "labela": "LoopingWorkflow",
        "labelb": "0708-4214-3536-4580"
    });
    return resp;
}

Last modified on 1 August 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon