<turbo-stream action="update" target="wiki_card"><template>

<h1>Attachments to and from Dynamics 365 Business Central</h1>
<div class="trix-content"><p>We are able to support attachment transfers to and from Dynamics 365 Business Central. The below product update blog page will explain the required steps in order to transfer your attachments to and from Business Central. As prerequisites, please make sure that the source and destination tables are available in both systems. If they are not available yet, you can make them available directly in your Business Central and Salesforce environments.&nbsp;<br><br></p><p><a href="https://www.rapidionline.com/product-updates/support-for-attachment-to-from-dynamics-365-business-central">Support for attachments from and to Microsoft Dynamics 365 Business Central<br><br></a>In Salesforce, <strong>ContentVersion</strong> and related objects such as <strong>ContentDocument and ContentDocumentLink</strong> form part of the platform's <strong>Content Management</strong> system, allowing for the storage and management of files and documents.<a href="https://www.rapidionline.com/product-updates/support-for-attachment-to-from-dynamics-365-business-central"><br></a><br></p><h3><strong>1. Key Salesforce File Objects:</strong></h3><ul><li><strong>ContentVersion</strong>:</li></ul><p>This object represents a version of a file in Salesforce. Each time a file is uploaded or a new version of an existing file is added, a new <strong>ContentVersion</strong> record is created. A <strong>ContentVersion</strong> stores the file's metadata, such as file name, file size, content type (MIME type), and the actual file data (as a base64-encoded binary blob).</p><ul><li><strong>ContentDocument</strong>:</li></ul><p>This is the core object that represents the file itself in Salesforce. The <strong>ContentDocument</strong> object is linked to one or more <strong>ContentVersion</strong> records. A <strong>ContentDocument</strong> acts as the parent object for all versions of a particular file. If a file has multiple versions, each <strong>ContentVersion</strong> record will reference the same <strong>ContentDocument</strong>. <strong>ContentDocument</strong> has fields that describe the file itself, such as its title and description, but does not store the file data directly.</p><ul><li><strong>ContentDocumentLink</strong>:</li></ul><p>This object defines the relationship between <strong>ContentDocument</strong> and other Salesforce records, such as Accounts, Opportunities, or custom objects. It essentially links the file (represented by <strong>ContentDocument</strong>) to a specific Salesforce record. You use <strong>ContentDocumentLink</strong> to associate a file with a particular record, making it visible and accessible within the context of that record.<br>------------------------------------------------------------------------------------------------------------------------------------</p><h2><strong>2. Access Control and Permissions:</strong></h2><ul><li>Files are subject to the standard Salesforce sharing and security model. Only users with appropriate permissions can access files associated with specific records.</li><li>Files linked to records might be subject to the sharing rules of those records (e.g., an Opportunity file might be restricted to users who have access to that Opportunity).</li></ul><p>------------------------------------------------------------------------------------------------------------------------------------</p><h2><strong>3. Sharing Files:</strong></h2><ul><li>Files (via <strong>ContentDocument</strong>) are subject to sharing and visibility rules. You cannot share files arbitrarily with users unless the <strong>ContentDocumentLink</strong> explicitly allows it.</li></ul><p>------------------------------------------------------------------------------------------------------------------------------------</p><h2><strong>4. Custom Fields Creation on Salesforce Key objects:</strong></h2><ul><li><strong>ContentDocument</strong> and <strong>ContentDocumentLink</strong> are part of Salesforce's <strong>Files</strong> and <strong>Content Management</strong> system, which is tightly integrated into the platform’s architecture. These objects are more standardized, and their field structure is controlled by Salesforce to maintain system integrity. Salesforce doesn't allow you to extend these objects with custom fields directly.&nbsp;</li><li>Custom fields <strong>can</strong> be created on <strong>ContentVersion</strong> and viewed in the <strong>Files</strong> or <strong>Attachments</strong> user interface, which is the correct approach for tracking additional metadata related to files uploaded to Salesforce.</li></ul></div>
</template></turbo-stream>

