I haven’t used REST responses in a trigger, but here’s an idea using a metadata field of the REST asset.
-
On the REST asset, add a new metadata text field “lastTriggeredDate”.
-
In your trigger’s Condition section:
- We want to only proceed with the trigger if the last triggered date is earlier than today.
- Use Keyword value and check
globals_asset_metadata_lastTriggeredDate:RESTASSETID^lt:{globals_date_Ymd}
for an exact match to 1
.
- Add existing conditions.
-
In the Action section:
- If trigger proceeds, update the metadata field with today’s date.
- Use Set Metadata Value, with ‘on other assets’ checked, on RESTASSETID.
- Set the metadata field ASSET ID to
%globals_date_Ymd%
. ‘Replace keywords’ should be checked.
- Add existing actions.
I presume there is a performance hit when we use globals to find the REST asset’s metadata values, but I think (hope) it will be minor.