New answers tagged

0 votes

Most robust way to parse CSV file via Apex code

First of all, I agree with the previous answer from @Daniel Ballinger. Here I would like to present a solution that can cover most situations when we have to work with small and simple CSV files. This ...
  • 103
-1 votes

Why do I only see some bytes after loading documents with data loader?

Whenever you are uploading a file specify the content type as UTF-8 Also Check if the csv's are of UTF-8 encoding The reason you are getting the above jibberish texts is due to encoding issue as the ...
0 votes

How to save a csv file to folder

you should query the ContentDocumentId from your content version. ContentVersion conVer = [SELECT Id, ContentDocumentId FROM ContentVersion WHERE Id = :file.Id LIMIT 1]; Query the contentworkspace ...

Top 50 recent answers are included