Skip to content

Instantly share code, notes, and snippets.

@escgeek
Last active July 9, 2017 18:58
Show Gist options
  • Save escgeek/f3acce6d7a5f6ad1865c6bdb215a2438 to your computer and use it in GitHub Desktop.
Save escgeek/f3acce6d7a5f6ad1865c6bdb215a2438 to your computer and use it in GitHub Desktop.
Account Page Example with Embedded Wave Dashboard
<apex:page showHeader="true" standardController="Account" sidebar="true">
<p>
<b><a href="/{!Account.Id}">{!Account.Name}</a></b>
</p>
<wave:dashboard dashboardId="0FKn00000004E86GSA" <!-- Fake ID - Use your assetId from Share URL -->
showTitle="false"
showSharing="false"
height="1800px"
openLinksInNewWindow="false"
filter="{'datasets':{
'Sales_YOY':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}],
'Sales_Daily':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}],
'Open_Orders':[{'fields':['Account__c.Id'], 'filter':{'operator': 'matches', 'values':['{!Account.Id}']}}]
}}"
/>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment