You need to sign in to do that
Don't have an account?
bpl3792
Is it possible to generate a .csv file and add it to the attachments object programatically?
We want to be able to log an object for historical purposes but it's way too much data to do that through salesforce so I figured we could dump the data into a CSV file. I want to be able to dump the CSV file itself directly to the attachments object if that's possible.
The way I'm currently generating the CSV file is by using the following in my visualforce page...
<apex:page standardController="Facility_Carrier_Contract__c" extensions="mc_FCCCodeHistory" id="page" standardStylesheets="false" showHeader="false" sidebar="false" contenttype="application/x-excel#export.csv"> {!exportData}</apex:page>
If you want to create .csv in Apex you could use the following code snippet:
HTH
All Answers
If you want to create .csv in Apex you could use the following code snippet:
HTH
Wow, that was incredibly easy. Thanks!
I have it exact questions(60/65 questions) with verified answers dump for Salesforce Administrator (ADM 201, Advanced Administrator (ADM 211), Platform Developer 1 (CRT 450), Platform App Builder (CRT 403), SalesCloud Consultant (CRT-251) and ServiceCloud Consultant (CRT-261) Spring 2020. Many of them cleared their first shot. 200% assured & accuracy. Mail me at sampaul.yes@gmail.com