Cheat Sheets/Power Automate/ticks
Power Automate (WDL) function

ticksPower Automate (WDL) function reference

Timestamp as a tick count.

Syntax

wdl
ticks(timestamp)

Examples

wdl
ticks(utcNow())
A big integer
wdl
div(sub(ticks(outputs('End_time')), ticks(triggerBody()?['StartTime'])), 36000000000)
Elapsed hours between two timestamps
wdl
greater(sub(ticks(utcNow()), ticks(item()?['LastRun'])), 864000000000)
true when more than 1 day has passed since LastRun

Common mistakes & gotchas

Related Workflow Definition Language functions

From Date & time

Used in these tutorials

← Back to the Power Automate (WDL) cheat sheet