Log list length and index values every 5 minutes
Recipe ToolsMarketing
What it does
When the clock triggers every 5 minutes, this automation creates a list and adds items to it. Someone can then log the list size and an indexed item to the job report to see how list operations work.
Who it's for
Engineering teams who want to understand list length and index syntax in automation logic.
How teams use this
Learn list length syntax
Run this automation to see how to get the size of a list and log it. The job report shows the exact value and format so someone can apply it to their own lists.
Understand list index retrieval
Watch the automation log an item retrieved by index position from List1. The job report demonstrates the syntax so someone can fetch specific items by position in their own workflows.
Add conditional logic on list size
Include a condition that checks if the list length exceeds a threshold before logging. Only log when the size meets a specific value so the job report stays focused on meaningful data.
Filter items before logging by index
Set up a filter to only log indexed items that match certain criteria. The job report then shows only the relevant items so someone can see how to combine filtering with index retrieval.
How it works
- Start on a 5-minute schedule. The Clock starts this automation every 5 minutes so the list operations run repeatedly and someone can observe the results.
- Create and populate a list. Create List1 and add items to it in batch so the list has data to measure and reference by index position.
- Log the list size to the report. Log a message to the job report that shows the size of List1 so someone can see the list length value in the output.
- Log an indexed item to the report. Log a message to the job report that retrieves an item from List1 by index so someone can see how index syntax works in practice.