Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Export Records with some Fields and Field Names


Recommended Posts



I'd like to have a button that uses a script to export the records that are being browsed to an excel or CSV file. I'd like to use two featuers:


1. Only certain fields in these records are exported

2. The headers of these fields are included at the top of the fiel


It seems that requirement 1 is possible with the "Export Records" script function but not with the "Save Records to Excel" function. Meanwhile, Requirement 2 is posisble with "Save Records to Excel" but not with "Export Records".


Is there any way to get both?



Link to comment
Share on other sites

Actually, I think I figured it out myself.


(1) Create a new layout that contains only those fields that you want to export. Lets call this layout "Export Layout"

(2) On the original layout, create a button with the following script:


(i) Go to Layout ["Export Layout"]

(ii) Save records to Excel [choose option to use field names as headers]

(iii) Go to Layout [Original]



Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Terms of Use