Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
2 years, 10 months ago
Is it currently natively possible to somehow have an SObject that links to a document, attachment, or salesforce file? Sure, you can always have a field that just includes the id of the object as text but that isn't really safe. I could not find any decent information about this issue, so if somebody could shine some light on this it would be greatly appreciated.
Jul 29, 2020 at 14:32
2,202 1 1 gold badge 18 18 silver badges 39 39 bronze badges
I don't think that is possible by default.
The ContentDocumentLink does provide that functionality where it links a record with a content document.
The attachments are linked to a parent directly (not vice-versa.)
Documents are linked to folders, not to a record.
ContentNotes is also linked to a record by ContentDocumentLink
Jul 29, 2020 at 14:39
7,893 15 15 silver badges 33 33 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only