Browse query templates

From the Queries workspace of the Experience Platform UI, select Templates to display the list of available saved queries.

The queries workspace with the Templates tab highlighted.

To find relevant template information, select any query template from the available list to open the details panel.

The details panel in the queries workspace with the query ID highlighted.

From the details panel you can execute the following actions:

  • Select Run as CTAS to create a new table by selecting data from an existing table or tables. This option is only available if you have a SELECT query.
  • Select Add schedule to begin editing your schedule for your query template.
  • Select View schedule to navigate to the Schedules tab of the Query Editor. This view contains any schedule information associated with the query.
  • Select Delete query to delete the template.
  • Select the template name to navigate to the Query Editor where the SQL is pre-populated for editing.

Use the Query Service API to create a template

See the documentation for instructions on how to make a query template using the Query Service API. The details for a newly created query template are contained in the response body.

NOTE
Templates created using the API are also visible in the Experience Platform UI Query Service Templates tab.

Next steps

By reading this document, you now have a better understanding of how to create query templates in Query Service. See the UI overview, or the Query Service API guide to learn more about Query Service capabilities.

See the scheduled queries endpoint guide to learn how to schedule queries using the API, or the Query Editor guide for the UI.

recommendation-more-help