Timestamp for the creation of the log entry
Which device the action was performed on, typically 'iPhone', 'iPad', or 'Mac'
The latitude portion of the location recorded when action was executed, if location services are enabled.
The longitude portion of the location recorded when action was executed, if location services are enabled.
The content of the log
Status of the log. "failed" indicates the action ended in an error, "completed" indicates successful completion of the action.
The Action object related to the log. This value may be nil if the action no longer exists.
The Draft object related to the log. This value may be nil if the action was performed without a draft in context, or if the related draft no longer exists.
Unique identifier
Delete the action log. This is permanent and should be used with caution
Generated using TypeDoc
ActionLog
ActionLog objects represent entries in the action log. ActionLog objects are accessed using the
actionLogs
property of the Draft object.// loop over log entries, deleting any more than 100 days old for(let log of draft.actionLogs) { if (log.executedAt < Date.today.addDays(-100)) { log.delete(); } }