Getting Started with File Management in docuWeaver
Overview
The steps for uploading and managing files with docuWeaver in Salesforce are outlined in this section.
The docuWeaver Lightning Web Component (LWC) must be added to the desired object’s Lightning record detail page before beginning file upload and management.
Adding docuWeaver Component on Lightning Record Detail Page
Navigate to the Salesforce record page (e.g., Account, Opportunity) where docuWeaver needs to be added.
Click the gear icon (⚙️) in the top-right corner.
Select Edit Page to launch Lightning App Builder.
Add docuWeaver component on lightning pageIn the Components panel (left sidebar), scroll to the Custom - Managed section.
Find the docuWeaver component (labeled as "docuWeaver”).
Add docuWeaver component on lightning pageDrag and drop the docuWeaver component into the desired section of the page layout (e.g., below related lists or in a custom tab).
Configure component properties if required (e.g.
Allowed Storage Profile,Max File Size(kB),Always ask profile,Base Path).
Click Save in the top-right corner to preserve changes.
Activate the page:
Click Activation to set the layout as the org default.
Assign the layout to relevant profiles or apps as needed.
Return to the record page and confirm the docuWeaver component appears.
After successfully adding and configuring the docuWeaver Lightning Web Component (LWC) on the desired Salesforce record page, the following steps outline how to upload files and perform key file management actions directly within the component.
Uploading a File
Navigate to the Salesforce record where the file needs to be uploaded.
Locate the docuWeaver Document Management Lightning Web Component (LWC) on the record detail page.
Upload FileClick the Upload Files button.
Upload FileSelect the desired file and click Open.
Upload FileThe uploaded file will appear in the component.
Upload File
Note: docuWeaver provides Salesforce Files as the default storage option. When no other storage servers are configured, all files uploaded through docuWeaver are stored in Salesforce Files by default.
Previewing a File
After uploading, locate the file in the component.
Click the row menu next to the file to be previewed.
Select View.
Preview File
Note: File preview functionality is dependent on the file extension and browser support. Only file types supported by the browser will be previewable.
Updating a File
In the file list, click the row menu next to the file requiring an update.
Select Upload.
Choose the new version of the file and click Open.
Update FileThe file will be updated, and a new version will be added. To view previous versions, use the row menu and select Version to see the file’s version history.
All Versions
Note: When a file is uploaded using the docuWeaver component, the following sequence occurs:
File Upload to Storage Server:
The file is uploaded directly to the configured storage server (such as Salesforce Files, Amazon S3, Azure Blob, or another supported provider).File Record Creation in Salesforce:
After the file is successfully stored on the storage server, docuWeaver creates a file record inside Salesforce. This record is stored under a custom object (named “Attachments”) within the docuWeaver managed package.Record Association:
The file record is associated with the specific file, enabling tracking, management, and retrieval of the file directly from within Salesforce records
Downloading a File
In the file list, click the row menu next to the file to be downloaded.
Select Download.
Downloading File
Deleting a File
In the file list, click the row menu next to the file to be deleted.
Select Delete.
Confirm the deletion in the popup dialog by selecting Yes.
Deleting File
Note: When a file is deleted from a component in Salesforce, it is also deleted from the connected external storage but remains in the storage's recycle bin. The corresponding Salesforce record is moved to the salesforce’s recycle bin. Recovering the file from either Salesforce or the external storage automatically restores it in both systems, ensuring synchronization.