ocdladefense / appserver-file-service
A module for uploading and listng files from the Salesforce platform.
Installs: 21
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-theme
Requires
README
Upload a file as an [blank].
Previously referred to as sObject Attachment sObject Documents.
Test routes
Test route URL includes the Salesforce record Id to use when updating a ContentDocument for a given Salesforce record.
Related Salesforce SObjects
ContentDocument
ContentDocumentLink
ContentVersion
Testing Script
-
While not logged in click on the "Upload Files" and "My Shared Files" and make sure you are getting the access denied message.
-
After logging in, click on the links again to make sure you have access.
-
Upload a file using the file upload form with none of the sharing options selected, and make sure that the "ContentDocumentLink" for the file has the current contact's ContactId for the LinkedEntityId field.
-
Upload another file with the sharing options selected. Make sure that the ContentDocumentLink(s) have the correct LinkedEnityIds.
Testing Script Part 2
-
The expectation is that if I upload a file while sharing with my contact and a committee I will see two ContentDocumentLinks with the same ContentDocumentId, and the same LinkedEntityId. I expect to see one ContentDocumentLink with matching ContentDocumentId and LinkedEntityId for each entity I shared it with.