This type extends to MetadataWithContent metadata type and inherits its content and fullName fields.
When using Metadata API to work with Analytics lenses, consider that:
- If a lens is archived (moved to the Recycle Bin), retrieving it doesn't return its metadata. Deploying changes to an archived lens fails with an error stating that the lens is in the Recycle Bin.
File Suffix and Directory Location
WaveLens components have the suffix .wlens and are stored in the wave folder.
Version
WaveLens components are available in API version 37.0 and later.
Fields
Declarative Metadata Sample Definition
The following is an example of a WaveLens component.
<?xml version="1.0" encoding="UTF-8"?> <WaveLens xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <content xsi:nil="true"/> <application>dev__app</application> <datasets>dev__abc</datasets> <masterLabel>lens1</masterLabel> <description>lens in shared app</description> <visualizationType>hbar</visualizationType> </WaveLens>
Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.