Adobe Experience Platform Query Service allows you to save and reuse SQL code in the form of query templates. Templates save effort by avoiding the repetition of commonly performed tasks. You can share templates within your organization and easily change the query values without needing to access or understand the underlying SQL.
This document provides the information required to create query templates in Query Service.
You must have the Manage queries permission enabled to access the Query Editor and view the queries dashboard within the Platform UI. The permission is enabled through the Adobe Admin Console. Please contact your organization’s administrator if you do not have administrator privileges to enable this permission. See the access control documentation for full instructions on adding permissions through Admin Console.
You can create query templates through two methods, either by making a POST request to the Query Service API
query-templates endpoint, or by writing, naming, and saving a query through the Query Editor.
See the documentation for instructions on how to use the Query Editor to write and save queries. Once you have named and saved your query, it is available to be reused as a query template from the Templates tab.
From the Queries workspace of the Platform UI, select Templates to display the list of available saved queries.
To find relevant template information, select any query template from the available list to open the details panel.
From the details panel you can execute four separate actions:
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.
Templates created using the API are also visible in the Platform UI Query Service Templates tab.
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.