Trigger scripts are designed to pull data from an external source and return all of the new items since the last run, without resorting to external webhooks. A trigger script is intended to be used with schedules and states (rich objects in JSON, persistent from one run to another) in order to compare the execution to the previous one and process each new item in a for loop. If there are no new items, the flow will be skipped.
state
which is meant to persist across distinct executions of the same script.This flow can be found on getOperate Hub.Examples of trigger scripts include:
Code below: