Skip to content

Instantly share code, notes, and snippets.

@rupton
Created May 21, 2013 20:10
Show Gist options
  • Save rupton/5622829 to your computer and use it in GitHub Desktop.
Save rupton/5622829 to your computer and use it in GitHub Desktop.
This is the page that outputs Accounts as a CSV file
<apex:page standardController="Account" recordSetVar="accounts" contentType="text/csv#accountlist.csv" sidebar="false" showHeader="false">
Account Name, Annual Revenue
<apex:repeat value="{!accounts}" var="account">
{!account.Name},{!account.annualrevenue}
</apex:repeat>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment