Workflow actions

Get current datetime

This Flow Companion action returns the current date and time in ISO 8601 UTC format. It's useful for timestamping events, or any scenario where you need the exact current time in a standardized format.

Configuration

This action requires no parameters. Simply add it to your workflow, and it will return the current UTC datetime when executed.

Output

The action returns the following field:

  • currentDatetime: The current date and time in ISO 8601 UTC format without milliseconds.

Output Format

The datetime is returned in the format: YYYY-MM-DDTHH:MM:SSZ

Example: 2026-01-01T16:00:00Z

Use Cases

Event Timestamping

Record the exact time when an action occurred in your workflow:

  1. Use "Get current datetime" action
  2. Store the result in a metafield or custom attribute
  3. Use for audit trails or order notes

Time-Based Calculations

Calculate deadlines or durations:

  1. Get the current datetime
  2. Use it as a reference point for scheduling future actions
  3. Compare with other datetime values in your workflow

Logging and Debugging

Add timestamps to your workflow logs:

  1. Get the current datetime at key points in your workflow
  2. Track workflow execution timing

Notes

  • The datetime is always in UTC timezone (indicated by the Z suffix)
  • Milliseconds are not included in the output for cleaner formatting
  • The format is compatible with most datetime parsing libraries and APIs