• francisco.sanchez
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,

Assume I have attachments for different types of salesforce object types (i.e. accounts, contacts ...). How can I get the downloadable link for those attachment? 
I can see different type of URLs for different type of attachment file types. i,e for a text file downloadable link in the UI is,
https://c.na15.content.force.com/sfc/servlet.shepherd/version/download/068i0000001hvwC?asPdf=false&operationContext=CHATTER
but for pdf it is,
https://c.na15.content.force.com/servlet/servlet.FileDownload?file=00Pi0000004wHwY

I have a component with ApacheTika and later I can parse this downloadable link to that component. So that component can download attachment. 

Thanks!
Hi,

Assume I have attachments for different types of salesforce object types (i.e. accounts, contacts ...). How can I get the downloadable link for those attachment? 
I can see different type of URLs for different type of attachment file types. i,e for a text file downloadable link in the UI is,
https://c.na15.content.force.com/sfc/servlet.shepherd/version/download/068i0000001hvwC?asPdf=false&operationContext=CHATTER
but for pdf it is,
https://c.na15.content.force.com/servlet/servlet.FileDownload?file=00Pi0000004wHwY

I have a component with ApacheTika and later I can parse this downloadable link to that component. So that component can download attachment. 

Thanks!