{"id":6581,"date":"2018-07-24T14:40:35","date_gmt":"2018-07-24T18:40:35","guid":{"rendered":"https:\/\/www.jitendrazaa.com\/blog\/?p=6581"},"modified":"2018-07-24T15:05:46","modified_gmt":"2018-07-24T19:05:46","slug":"comparing-between-attachment-document-content-library-and-files-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/comparing-between-attachment-document-content-library-and-files-in-salesforce\/","title":{"rendered":"Summary of Attachment, Document, Content Library and Files in Salesforce"},"content":{"rendered":"<p><strong><span style=\"text-decoration: underline;\">Summary :<\/span><\/strong><\/p>\n<ul>\n<li style=\"text-align: justify;\"><strong>Files<\/strong> is new way to store file in Salesforce<\/li>\n<li style=\"text-align: justify;\">Content from external file service like Google, Box appears in Files<\/li>\n<li style=\"text-align: justify;\">Files from Content Library displayed in file<\/li>\n<li style=\"text-align: justify;\">CRM Content Library cannot be created in Lightning experience yet<\/li>\n<li style=\"text-align: justify;\">Attachment and Files are two different objects, so two different related lists.<\/li>\n<li style=\"text-align: justify;\">Attachment can be viewed in Lightning in <strong>Notes &amp; Attachment<\/strong> related list<\/li>\n<li style=\"text-align: justify;\">Attachments cannot be created in Lightning Experience, we should not use Attachments in future<\/li>\n<li style=\"text-align: justify;\">To migrate existing Attachment to Files, use this <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=a0N3A00000EHAmyUAH\">AppExchange<\/a> from Salesforce Labs<\/li>\n<li style=\"text-align: justify;\">Document tab is not available in Lightning Experience<\/li>\n<li style=\"text-align: justify;\">Documents should be replaced by File<\/li>\n<li style=\"text-align: justify;\">Files yet does not support being used as attachment in Email Templates. If you are using Document in Email template, then keep it in Document<\/li>\n<li style=\"text-align: justify;\">CRM Content delivery not available in Lightning but File can be shared with external user using Link<\/li>\n<li style=\"text-align: justify;\">External user can only view or download file but cannot edit or update<\/li>\n<li style=\"text-align: justify;\">File supports versioning<\/li>\n<li style=\"text-align: justify;\">File can be related with multiple records.<\/li>\n<li style=\"text-align: justify;\">File supports granular level sharing. It would be shared with anyone who has access to parent record. If you want to share with broad audience, it can be shared on chatter.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p style=\"text-align: justify;\"><strong>Resource :<\/strong><\/p>\n<p><a href=\"https:\/\/trailhead.salesforce.com\/en\/modules\/lightning-experience-productivity\/units\/work-with-notes-and-files\">Trailhead<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Comparing between Attachment, Document, Content Library and Files in Salesforce<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[245,56],"class_list":["post-6581","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-attachment","tag-chatter-files"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3361,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/working-with-email-to-case-agent-in-salesforce\/","url_meta":{"origin":6581,"position":0},"title":"Working with Email to Case Agent in Salesforce","author":"Jitendra","date":"July 8, 2013","format":false,"excerpt":"I have searched web for proper \"Email to Case\"\u009d agent tutorial but didn't find enough information so decided to write my own one. Many of you already knows that we have \"On - Demand\"\u009d email to case, so what is need of this Agent? However there are existing client which\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Email To Case Agent Running Mode","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/07\/Email-To-Case-Agent-Running.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/07\/Email-To-Case-Agent-Running.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2013\/07\/Email-To-Case-Agent-Running.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2797,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/creating-trigger-on-attachment-in-salesforce\/","url_meta":{"origin":6581,"position":1},"title":"Creating Trigger on Attachment in Salesforce","author":"Jitendra","date":"March 28, 2012","format":false,"excerpt":"Example and tutorial on creating the trigger for attachment in salesforce which will not allow to upload the file in opportunity if file contains some predefined text","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Before insert Trigger on Attachment using eclipse in Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Before-insert-Trigger-on-Attachment-Salesforce.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Before-insert-Trigger-on-Attachment-Salesforce.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Before-insert-Trigger-on-Attachment-Salesforce.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4107,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-drag-and-drop-file-uploader-component-with-progress-bar-html5-and-pure-javascript-based\/","url_meta":{"origin":6581,"position":2},"title":"Salesforce &#8211; Drag and Drop File Uploader Component with Progress Bar &#8211; HTML5 and Pure Javascript Based","author":"Jitendra","date":"December 19, 2014","format":false,"excerpt":"You may find many ways to upload attachments in Salesforce using\u00a0visualforce\u00a0however most of them uses some Javascript libraries (means either you need to depend on static resources or add CDN in remote site settings) or they do not have progress bar or they are not drag and drop. I thought\u2026","rel":"","context":"In &quot;HTML&quot;","block_context":{"text":"HTML","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/web\/"},"img":{"alt_text":"HTML5 Drag And Drop File","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/HTML5-Drag-And-Drop-File-1024x205.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/HTML5-Drag-And-Drop-File-1024x205.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/HTML5-Drag-And-Drop-File-1024x205.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2546,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/email-services-in-salesforce-with-simple-example\/","url_meta":{"origin":6581,"position":3},"title":"Email Services in Salesforce with simple example","author":"Jitendra","date":"January 11, 2012","format":false,"excerpt":"Complete tutorial of Email services in Salesforce with simple step by step example","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"How Email Services works in Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/12\/Email-Services-in-Salesforce.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4136,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-spring-15-some-highlighted-features\/","url_meta":{"origin":6581,"position":4},"title":"Salesforce Spring 15 &#8211; some highlighted features","author":"Jitendra","date":"December 28, 2014","format":false,"excerpt":"Download PDF version of release notes from here. 1. Import Account \/ Contact from 16 different sources (previously generic csv was only option to import). 2. Salesforce Analytics Query language (SAQL) We already know about SOQL and SOSL. This is new Query language for Analytics cloud to enable ad hoc\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Case Macro - Spring 15","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/Case-Macro-Spring-15.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/Case-Macro-Spring-15.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/Case-Macro-Spring-15.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/12\/Case-Macro-Spring-15.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":4667,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/barcode-decoder-in-salesforce1-very-fast-and-simple\/","url_meta":{"origin":6581,"position":5},"title":"Javascript based Barcode decoder in Salesforce1 &#8211; Very fast and Simple","author":"Jitendra","date":"July 10, 2015","format":false,"excerpt":"Very fast and Simple Barcode decoder in Salesforce1 using quaggaJS javascript library","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Barcode decoder sample in Salesforce 1","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/download-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/download-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/download-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/6581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=6581"}],"version-history":[{"count":7,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/6581\/revisions"}],"predecessor-version":[{"id":6588,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/6581\/revisions\/6588"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=6581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=6581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=6581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}