CRM Analytics Apex Lens
Use the Lenses class to retrieve a collection of CRM Analytics lens assets and to describe a single lens asset.
The CRM Analytics Wave.Lenses class provides access from Apex to the CRM Analytics lens assets.
Map<String, Object> getLenses()
Retrieves a collection of lenses.
Map<String, Object> getLenses(String searchOptions)
Retrieves a collection of lenses using search options.
Map<String, Object> getLens(String lensIdOrApiName)
Retrieves a lens by ID or the API name.
Map<String, Object> getLens(String lensIdOrApiName, String filterGroup)
Retrieves a lens by ID or the API name and a filterGroup parameter.
For information on request parameters and the Lens JSON responses, see the Analytics REST API Developer Guide: Lenses List Resource.