Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

Upload file and attach it to contentDocument

Asked by Ema Harada Jul 24, 2021 2.7K views 1 answer
Share

About this question

I'm trying to develop functionality that uploads files and attach them to my opportunity ContentDocument (and not attachment) as my standard component do. I'm wondering when I’m saving my uploaded file in contentdocument , if i should create a version in contentversion for that file or how does it really work , in another world how i create my contentdocument object ? I'm a beginer in salesforce and the relationship between contentdocument and contentversion is not that clear to me. Thank you in advance.


Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.