Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Dynamic Daily Output and Run Daily Dynamic Date

alteroak
5 - Atom

So looking for some assitance, if you see below we are querying DB via rest API to grab last 24 hours of data

 

 

alteroak_0-1646779151800.png

 

alteroak_1-1646779262569.png

 

In payload we are using http post method and delivering query like this

 

{
"query" : "SELECT __time, amount, account, campaign, type, userAgent FROM \"example-table-events\" WHERE __time >= CURRENT_TIMESTAMP - INTERVAL '24' HOUR"
}

 

This will then output JSON file for us to work with

 

However what we need to do is 

 

1) We will run this daily, so want to automatically get the previous complete days data without missing any timeframes, post query may need adjusting?

2) We output static file as you can see called everything.json which will get overwritten everytime it runs, however we want files to sit in folder to be added daily instead e.g 1stapril.json, 2ndapril.json etc etc

 

Whats best way alteryx can handle this? Example workflows appreciated

 

 

0 REPLIES 0
Labels
Top Solution Authors