Loading

Mass Update Share Type of Content Documents using Data Loader

Date de publication: May 12, 2026
Description

When notes and attachments are migrated to Lightning Experience in Salesforce using the Notes and Attachments migration tool, the ContentDocumentLink ShareType is set to "V" (Viewer) by default. This prevents users who have access to a related record (such as an Account or Contact) from editing the associated ContentNote, even when they should have edit permissions based on the related record.
This article explains how to use Data Loader to bulk-update the ShareType of ContentDocumentLink records so that users can edit ContentNotes based on their record-level access.
See Also:

* Change File Access in Salesforce Classic
* Migrate notes and attachments to Lightning 


See Also:
Change File Access in Salesforce Classic

 

Résolution

Why ShareType Matters

The ShareType field on ContentDocumentLink controls what a user can do with a shared file:

* V (Viewer): The user can view the file but cannot edit it, regardless of their permissions on the related record.
* I (Inferred): The user's permission is determined by their access level on the related record. If they can edit the record, they can edit the file.

To allow users to edit ContentNotes, the ShareType must be updated from V to I.

Steps to Mass Update ShareType via Data Loader

Step 1: Export ContentDocumentLink records using Data Loader.
In Data Loader, export records from the ContentDocumentLink object. Apply a filter using the LINKEDENTITYID field (the related record ID, such as an Account ID) or the ContentDocumentID field to scope your export to the relevant records. Include the Id and ShareType fields in your export. For example, filter on a specific Account ID to export all content links for that account.
Step 2: Modify the exported CSV file.
Open the exported CSV file. Locate the ShareType column. Change the value from "V" to "I" for all rows you want to update.
Step 3: Update ContentDocumentLink records using Data Loader.
In Data Loader, use the Update operation on the ContentDocumentLink object. Map the Id and ShareType fields from your modified CSV. Proceed with the update.
Step 4: Verify the update.
After the update completes, verify that the affected users can now edit the ContentNote records via the related record.

Numéro d’article de la base de connaissances

000380894

 
Chargement
Salesforce Help | Article