Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save charltonAthletic/8d2ae3f2f8bd45498c13 to your computer and use it in GitHub Desktop.
Save charltonAthletic/8d2ae3f2f8bd45498c13 to your computer and use it in GitHub Desktop.
// This Javascript snippet can be used on a custom button to pass a parameter to a report allowing dynamic reports.
// window.open("salesforce_instance.com/reportId?firstparamater)
// More info on using Javascript behind custom buttons to create dynamic reports can be found here: http://www.tgerm.com/2011/04/passing-params-to-reports-salesforce.html
window.open("https://eu0.salesforce.com/00O11000000P42z?pv0={!Account.Id}", "Key_Contacts", "toolbar=0, scrollbars=1");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment