Is there a simple way of fetching all records “whose date column y is from x days ago”?
e.g. All contacts whose “LastContacted” column is less than 7 days ago.
My current process is:
Run javascript in JS Env to get the unixtime of 7 days ago
Set variable of type date to unix timestamp
format a query using timestamp and date functions in the query language to run the timestamp comparisons (I got the idea from the way the frontend does it)
This doesn’t answer your question at all but I had no idea you could use JavaScript in a function like that. I need to go find where I missed that in the docs lol
Thank you for sharing. Now I’m off to test and play with this.