Providing report templates

You have the option to provide report templates with your Community Connector. Report templates can help users to quickly understand the capabilities of your connector if they are unfamiliar with the data source.. It also gives the users a foundation to build on rather than starting from a blank report. To use this feature, you have to first design the template in Data Studio and then add it to your Community Connector's manifest.

How to create a report template

To create a report template for your Community Connector, create a new report in Data Studio and add your connector as the data source. Then add charts, tables, elements etc. to your template and design it to your liking. Give the report a name and save it.

How to add the report template to the connector manifest

You can get the report ID from the report's URL and add it to the connector manifest as a template. Open the report to use as a template in Data Studio and inspect the URL for the report. The part between reporting/ and /page is the report ID. For example, in the following URL, 0B1a5IAKYIVtTcWxCbWJkc2Q1M1k is the report ID:

https://datastudio.google.com/c/org/UTgoe29uR0C3F1FBAYBSww/reporting/0B1a5IAKYIVtTcWxCbWJkc2Q1M1k/page/9QoH

You can now add this report as a template in the manifest of your Community Connector:

{
  "dataStudio": {
    ...
    "templates": {
      "default": "0B1a5IAKYIVtTcWxCbWJkc2Q1M1k"
    }
  }
}

Behavior of templates

If your connector's manifest has an entry for the template key, during the connector configuration screen, Data Studio will provide a checkbox to allow the user to select whether or not they want to use the default template. The checkbox is selected by default.