Skip to content

Instantly share code, notes, and snippets.

@dancinllama
Created August 7, 2012 19:37
Show Gist options
  • Save dancinllama/3288697 to your computer and use it in GitHub Desktop.
Save dancinllama/3288697 to your computer and use it in GitHub Desktop.
CSV VF page.
<!-- CSV Template Download Page for Uploading Reward Point purchases -->
<apex:page cache="false" contenttype="application/x-excel#RewardPointsTemplate.csv" showheader="false">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
</head>
<table>
<tr>
<td>{!$ObjectType.Bungee_User__c.fields.Account_Number__c.label}</td>
<td>{!$ObjectType.Reward_Point__c.fields.Name.label}</td>
<td>{!$ObjectType.Reward_Point__c.fields.Eligible_Spend__c.label}</td>
<td>{!$ObjectType.Reward_Point__c.fields.Reward_Reason__c.label}</td>
</tr>
</table>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment