Skip to content
Proud to collaborate with Microsoft for Startups

appdata.query.history ​

List statements offered to the app's SQL endpoint, admitted or refused

Statements this app has run, newest first, from the SQL audit log.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-appdata
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
actor_user_uuiduuidNo—Platform user this query belongs to; authorship and private visibility key off it
mine_onlybooleanNo—Only statements this user ran (default true when actor_user_uuid is given)
admitted_onlybooleanNo——
searchstringNo—Substring of the statement
sincestringNo—ISO-8601; only statements offered at or after this moment
untilstringNo—ISO-8601; only statements offered before this moment
limitintegerNo——
offsetintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
identity_app_uuiduuidYes——
entrieslistNo——
entry_countintegerNo——
totalintegerNo——
limitintegerNo——
offsetintegerNo——
sincestringNo——
untilstringNo——
errorstringNo—Error message when the read failed
error_typestringNo—Error class name when the read failed

States ​

StateInitialTerminalSuccessAuto-advanceDescription
doneYesYesYes——

Outcomes ​

OutcomeTypeDescriptionState Data Keys
listedSUCCESSList statements offered to the app's SQL endpoint, admitted or refusedentry_count, total
failedFAILUREAppdata workflow failedfailure_reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "appdata.query.history",
  "initial_data": {
    "organization_uuid": "value",
    "identity_app_uuid": "value"
  }
}