function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SeannoSeanno 

Custom Button to export field data

Was wondering if there was a way to create a custom button, in an Opportunity, that would be able to export data in fields of an opportunity to an Access Database or Excel Sheet?

 

Seanno

sinsiterrulezsinsiterrulez

Hi,

You can call a VF page on that button

Add content type attribute in apex:page tag in VF page

<apex:page sidebar="false" standardcontroller="Opportunity" contentType="application/vnd.ms-excel#Oppty.xls">

 Though I got some issues in IE7.

Check this post