CRM Analytics Apex Templates
Use the Templates class to retrieve a collection of CRM Analytics templates, describe a single template and template configuration.
The CRM Analytics Wave.Templates class provides access from Apex to CRM Analytics templates. The methods are annotated with @AuraEnabled for use in Lightning Web Components (LWC).
Map<String, Object> getTemplates()
Retrieves a collection of templates.
Map<String, Object> getTemplates(Wave.TemplatesSearchOptions searchOptions)
Retrieves a collection of templates using search options.
Map<String, Object> getTemplate(String templateIdOrApiName)
Retrieves a template by ID or the API name.
Map<String, Object> getTemplateConfig(String templateIdOrApiName)
Retrieves a template configuration by ID or the API name.
For information on request parameters and the Template JSON responses, see the Analytics REST API Developer Guide: Templates List Resource. To see the full reference for the Templates Apex class, see the Apex Reference Guide: wave Namespace.