Hi,
I am facing an issue while creating a ContentDocumentLink record from a Flow.
internal users are currently not able to add documents/files.
The Flow successfully creates the Case record, but fails when trying to link the uploaded file to the Case with the below error:
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY
In the Flow:
• ContentDocumentId starts with 069
• ShareType = V
• Visibility = AllUsers
I would like to understand:
1. What permissions are required for users to create ContentDocumentLink records?
2. Does the user need additional access to Files/Content objects?
3. Could Visibility = AllUsers be causing this issue.
Any guidance would be greatly appreciated.
Thank you!
#Salesforce Developer #Trailhead #Flow #Analytics #New Releases #Automation #Service CloudCan you show the Create Record element that inserts the ContentDocumentLink?
- Make sure that the user has Read/Write access to both the entityId (e.g., Account, Case) and the ContentDocument.
- Check the user's profile or permission set for access to the ContentDocumentLink object.
- If the entityId(Case) is private due to Organization-Wide Defaults (OWD), create a Sharing Rule to grant access to the user.
- Confirm that the user owns the entityId or has access through Role Hierarchy or Manual Sharing.