Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
TemplatesSearchOptions Class
Namespace
Usage
Use TemplatesSearchOptions with Wave.Templates class to filter the CRM Analytics template collection returned. For example:
1public static void List<String> getAppTemplates() {
2 Wave.TemplateSearchOptions tsOptions = new Wave.TemplatesSearchOptions();
3 tsOptions.type = 'app';
4
5 Map<String, Object> o = Wave.Templates.getTemplates(tsOptions);
6 List<Object> appTemplates = (List<Object>) o.get('templates');
7 List<String> names = new List<String>();
8 for (Object templateObj : appTemplates) {
9 names.add((String) ((Map<String, Object>) templateObj.get('name'));
10 }
11 return names;
12}TemplatesSearchOptions Properties
The following are properties for TemplatesSearchOptions.
filterGroup
Signature
public String filterGroup {get; set;}
Example
1Wave.TemplateSearchOptions tsOptions = new Wave.TemplatesSearchOptions();
2tsOptions.filterGroup = 'small';options
Signature
public String options {get; set;}
Property Value
Type: String
Uses the ConnectWaveTemplateVisibilityOptionsEnum values. Valid values are CreateApp, ViewOnly, and ManageableOnly.
Example
1Wave.TemplateSearchOptions tsOptions = new Wave.TemplatesSearchOptions();
2tsOptions.options = 'ViewOnly';type
Signature
public String type {get; set;}
Property Value
Type: String
Uses the ConnectWaveTemplateTypeEnum values. Valid values are app, dashboard, embedded, and lens.
Example
1Wave.TemplateSearchOptions tsOptions = new Wave.TemplatesSearchOptions();
2tsOptions.type = 'app';