Hi all, I noticed that the only available functions for SQL Runner via API are “Get SQL Runner Query” and “Create SQL Runner Query”. Is it thus not possible to run a SQL Runner query and get its results?
Best answer by jay.hester
View originalHi all, I noticed that the only available functions for SQL Runner via API are “Get SQL Runner Query” and “Create SQL Runner Query”. Is it thus not possible to run a SQL Runner query and get its results?
Best answer by jay.hester
View originalHello Alson,
This is not possible at the moment. You can create a SQL runner query task, but there is no API to fetch the results of that query.
We have a case opened with Engineering in order to add this in upcoming releases.
Please let us know in case you have any further question.
Thanks.
That’d be great, thanks Diego!
Was there any further action to this?
Hey
My workaround here is that from SQL runner I click “Explore” and then I get slug id from link and run it from API using query_for_slug and then run_query 🙂
Hi,
Once a SQL runner query task has been made, is there any API link (maybe using the slug?) to get the results from that query?
Hey grace_gee & marcoppenheimer,
Thanks for voicing your feedback and questions on this topic! This is something that has a lot of interest which our engineers are aware of and I have let them know your feedback on this!
Joanna’s approach is a great way to go in the meantime, what I would suggest and Joanna can correct me if she has an easier approach is the following:
( "id": 120164,)
query_id
param and then in the result_format
you can add csv.Here are screenshots of some dummy data in my SQL Runner explore and then the same data in the API after following the above steps!
Hope this helps guys! 🙂
Jay
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.