Skip to main content
Hello,

I'm trying to access a csv document in my Document sObject via apex (in order to parse the csv). I know how to parse CSV one I get the data (there are many articles on that part), but I'm not sure how to grab the document from the documents sObject in the first place!

How do I reference the CSV document (in sObject Document) from Apex?

I did see that a URL is returned from the following query:

​SELECT body From Document WHERE name = 'myCSV'

That returns something like:

/services/data/v32.0/sobjects/Document/00000UptFER/Body

Do I need to point the parser to that address?

Thank you!
1 answer
  1. Jul 24, 2016, 5:54 PM
    Hi ,

    I have also same requirement ,if you have any sample code please share with me.

    Advance thanks for your help.

    Thanks you.
0/9000